Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Last active November 25, 2016 04:08
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/c40fca6705412e14a5218ce628e2d99d to your computer and use it in GitHub Desktop.
Save whatalnk/c40fca6705412e14a5218ce628e2d99d to your computer and use it in GitHub Desktop.
AtCoder ABC #030 A. 勝率計算 [C++]
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (b * c > d * a) {
cout << "TAKAHASHI" << endl;
} else if (b * c < d * a) {
cout << "AOKI" << endl;
} else {
cout << "DRAW" << endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment