Submission #19814968
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a>>b>>c;
if(a==0 and b == 0){
if(c==0){
cout <<"Aoki";
}
else{
cout << "Takahashi";
}
}
if(a!=0){
if(c==0){
a -=1;
}
while(a!=0 and b!=0){
b -=1;
a -=1;
}
if(b==0){
cout << "Takahashi";
}
else{
cout << "Aoki";
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Very Very Primitive Game |
| User | hocashi |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 361 Byte |
| Status | AC |
| Exec Time | 5 ms |
| Memory | 3628 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 01_sample.txt, 02_sample.txt, 03_sample.txt |
| All | 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_random.txt, 05_random.txt, 06_random.txt, 07_random.txt, 08_random.txt, 09_random.txt, 10_random.txt, 11_random.txt, 12_random.txt, 13_random.txt, 14_random.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01_sample.txt | AC | 1 ms | 3564 KiB |
| 02_sample.txt | AC | 2 ms | 3512 KiB |
| 03_sample.txt | AC | 2 ms | 3628 KiB |
| 04_random.txt | AC | 2 ms | 3564 KiB |
| 05_random.txt | AC | 1 ms | 3588 KiB |
| 06_random.txt | AC | 2 ms | 3432 KiB |
| 07_random.txt | AC | 2 ms | 3384 KiB |
| 08_random.txt | AC | 2 ms | 3512 KiB |
| 09_random.txt | AC | 2 ms | 3588 KiB |
| 10_random.txt | AC | 5 ms | 3388 KiB |
| 11_random.txt | AC | 3 ms | 3448 KiB |
| 12_random.txt | AC | 5 ms | 3564 KiB |
| 13_random.txt | AC | 2 ms | 3576 KiB |
| 14_random.txt | AC | 3 ms | 3528 KiB |