Submission #3246127
Source Code Expand
#include<iostream> #include<string> #include<vector> #include<stdbool.h> #include<numeric> #include<math.h> #include<algorithm> #include<set> #include<string> #include<stdlib.h> typedef long long ll; using namespace std; //stringの使い方 int main(void) { int a, b, c; cin >> a >> b >> c; if (a == b + c) { cout << "Yes" << endl; return 0; } if (b == a + c) { cout << "Yes" << endl; return 0; } if (c == b + a) { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Fighting over Candies |
User | hanbeidayo |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 540 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 |