Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created November 12, 2016 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/6941f6f766f65545eaff819a4271e166 to your computer and use it in GitHub Desktop.
Save whatalnk/6941f6f766f65545eaff819a4271e166 to your computer and use it in GitHub Desktop.
AtCoder ABC #042 A [C++]
#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