Submission #31176141
Source Code Expand
#include<iostream> #include<string> #include<vector> #include<stack> #include<queue> #include<set> #include<map> #include<algorithm> #include<cstring> using namespace std; int main() { int a, b, c, d, e, f, x; int i; int aa, bb; cin >> a >> b >> c >> d >> e >> f >> x; aa = 0; bb = 0; for (i = 0; i < x; i++) { if (i % (a + c) < a) aa += b; if (i % (d + f) < d) bb += e; } if (aa > bb) cout << "Takahashi"; else if (aa < bb) cout << "Aoki"; else cout << "Draw"; }
Submission Info
Submission Time | |
---|---|
Task | A - Jogging |
User | gojib2002 |
Language | C++ (GCC 9.2.1) |
Score | 100 |
Code Size | 513 Byte |
Status | AC |
Exec Time | 7 ms |
Memory | 3552 KiB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_00.txt, example_01.txt, example_02.txt |
All | example_00.txt, example_01.txt, example_02.txt, handmade.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_00.txt | AC | 7 ms | 3552 KiB |
example_01.txt | AC | 2 ms | 3328 KiB |
example_02.txt | AC | 2 ms | 3432 KiB |
handmade.txt | AC | 2 ms | 3516 KiB |
test_00.txt | AC | 2 ms | 3448 KiB |
test_01.txt | AC | 2 ms | 3424 KiB |
test_02.txt | AC | 3 ms | 3308 KiB |
test_03.txt | AC | 3 ms | 3524 KiB |
test_04.txt | AC | 3 ms | 3380 KiB |
test_05.txt | AC | 3 ms | 3324 KiB |
test_06.txt | AC | 2 ms | 3308 KiB |
test_07.txt | AC | 2 ms | 3424 KiB |
test_08.txt | AC | 3 ms | 3380 KiB |
test_09.txt | AC | 2 ms | 3528 KiB |