Last active
November 25, 2016 04:08
-
-
Save whatalnk/c40fca6705412e14a5218ce628e2d99d to your computer and use it in GitHub Desktop.
AtCoder ABC #030 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, 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