Submission #49436976


Source Code Expand

Copy
#ABC337_20240120_A
N=int(input())
T=0
A=0
for i in range(N):
x,y=map(int,input().split())
T+=x
A+=y
if(T>A):
print("Takahashi")
elif(T<A):
print("Aoki")
else:
print("Draw")
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#ABC337_20240120_A
N=int(input())
T=0
A=0
for i in range(N):
    x,y=map(int,input().split())
    T+=x
    A+=y
if(T>A):
    print("Takahashi")
elif(T<A):
    print("Aoki")
else:
    print("Draw")

Submission Info

Submission Time
Task A - Scoreboard
User Konini
Language Python (PyPy 3.10-v7.3.12)
Score 100
Code Size 211 Byte
Status AC
Exec Time 57 ms
Memory 76760 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 13
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 02_handmade_09.txt, 02_handmade_10.txt, 02_handmade_11.txt, 02_handmade_12.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 55 ms 76404 KB
00_sample_01.txt AC 54 ms 76752 KB
00_sample_02.txt AC 54 ms 76760 KB
01_random_03.txt AC 55 ms 76312 KB
01_random_04.txt AC 55 ms 76548 KB
01_random_05.txt AC 55 ms 76148 KB
01_random_06.txt AC 54 ms 76576 KB
01_random_07.txt AC 55 ms 76628 KB
01_random_08.txt AC 57 ms 76380 KB
02_handmade_09.txt AC 55 ms 76452 KB
02_handmade_10.txt AC 55 ms 76420 KB
02_handmade_11.txt AC 55 ms 76312 KB
02_handmade_12.txt AC 55 ms 76472 KB


2025-04-03 (Thu)
17:45:09 +00:00