Submission #2706909
Source Code Expand
#include <iostream> using namespace std; int main() { int a,b,c; cin >> a >> b >> c; if (a == b + c){ cout << "Yes" << endl; } else if(b == a + c){ cout << "Yes" << endl; } else if(c == a + b){ cout << "Yes" << endl; } else{ cout << "No" << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Fighting over Candies |
User | penpen12 |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 339 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 1 ms | 256 KB |
sample_02.txt | AC | 1 ms | 256 KB |
sample_03.txt | AC | 1 ms | 256 KB |
test_01.txt | AC | 1 ms | 256 KB |
test_02.txt | AC | 1 ms | 256 KB |
test_03.txt | AC | 1 ms | 256 KB |
test_04.txt | AC | 1 ms | 256 KB |
test_05.txt | AC | 1 ms | 256 KB |
test_06.txt | AC | 1 ms | 256 KB |
test_07.txt | AC | 1 ms | 256 KB |