Created
November 12, 2016 02:55
-
-
Save whatalnk/6941f6f766f65545eaff819a4271e166 to your computer and use it in GitHub Desktop.
AtCoder ABC #042 A [C++]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main() { | |
int a, b, c; | |
cin >> a >> b >> c; | |
string ret; | |
int x = max({a, b, c}); | |
int y = min({a, b, c}); | |
if ((x == 7) && (y == 5) && ((a + b + c) - (x + y) == 5)) { | |
ret = "YES"; | |
} else { | |
ret = "NO"; | |
} | |
cout << ret << endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment