Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created May 17, 2019 11:56
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/08950ae51e67cc08f37deb7d4363216a to your computer and use it in GitHub Desktop.
Save whatalnk/08950ae51e67cc08f37deb7d4363216a to your computer and use it in GitHub Desktop.
AtCoder ABC #100 A - Happy Birthday!
#include <iostream>
using namespace std;
static int A, B;
void solve();
void solve() {
if (A <= 8 && B <= 8) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
}
int main() {
cin >> A >> B;
solve();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment