Official
A - Very Very Primitive Game Editorial by en_translator
If you are new to learning programming and do not know where to start, please try Problem A “Welcome to AtCoder” from practice contest. There you can find a sample code for each language.
When \(C=0\), Takahashi wins if \(A>B\);
when \(C=1\), Takahashi wins if \(A≥B\).
Therefore, output Takahashi
if \(A+C>B\), otherwise output Aoki
.
Sample Code (C++)
#include <iostream>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
cout << (A + C > B ? "Takahashi" : "Aoki") << endl;
}
Sample Code (Python)
A, B, C = map(int, input().split())
if A + C > B:
print("Takahashi")
else:
print("Aoki")
posted:
last update: