提出 #49436976


ソースコード 拡げる

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")

提出情報

提出日時
問題 A - Scoreboard
ユーザ Konini
言語 Python (PyPy 3.10-v7.3.12)
得点 100
コード長 211 Byte
結果 AC
実行時間 57 ms
メモリ 76760 KB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 13
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
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-09 (水)
14:45:31 +00:00