結果

問題 No.946 箱箱箱
ユーザー satama6satama6
提出日時 2022-10-19 03:03:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 390 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 86,772 KB
実行使用メモリ 76,884 KB
最終ジャッジ日時 2023-09-11 18:28:57
合計ジャッジ時間 7,308 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,048 KB
testcase_01 AC 70 ms
71,244 KB
testcase_02 AC 71 ms
71,012 KB
testcase_03 AC 97 ms
76,732 KB
testcase_04 AC 95 ms
76,564 KB
testcase_05 AC 71 ms
71,356 KB
testcase_06 AC 93 ms
76,388 KB
testcase_07 AC 90 ms
76,564 KB
testcase_08 AC 92 ms
76,772 KB
testcase_09 AC 93 ms
76,632 KB
testcase_10 AC 93 ms
76,516 KB
testcase_11 AC 71 ms
71,184 KB
testcase_12 AC 91 ms
76,612 KB
testcase_13 AC 90 ms
76,568 KB
testcase_14 AC 92 ms
76,516 KB
testcase_15 AC 91 ms
76,552 KB
testcase_16 AC 92 ms
76,716 KB
testcase_17 AC 92 ms
76,584 KB
testcase_18 AC 93 ms
76,772 KB
testcase_19 AC 96 ms
76,584 KB
testcase_20 AC 74 ms
71,128 KB
testcase_21 AC 92 ms
76,588 KB
testcase_22 AC 96 ms
76,716 KB
testcase_23 AC 94 ms
76,728 KB
testcase_24 AC 92 ms
76,520 KB
testcase_25 AC 91 ms
76,500 KB
testcase_26 AC 93 ms
76,628 KB
testcase_27 AC 92 ms
76,644 KB
testcase_28 AC 91 ms
76,480 KB
testcase_29 AC 92 ms
76,624 KB
testcase_30 AC 92 ms
76,424 KB
testcase_31 AC 94 ms
76,520 KB
testcase_32 AC 94 ms
76,568 KB
testcase_33 AC 95 ms
76,580 KB
testcase_34 AC 93 ms
76,536 KB
testcase_35 AC 96 ms
76,768 KB
testcase_36 AC 96 ms
76,804 KB
testcase_37 AC 95 ms
76,664 KB
testcase_38 AC 93 ms
76,364 KB
testcase_39 AC 102 ms
76,624 KB
testcase_40 AC 95 ms
76,568 KB
testcase_41 AC 92 ms
76,884 KB
testcase_42 AC 90 ms
76,588 KB
testcase_43 AC 92 ms
76,552 KB
testcase_44 AC 93 ms
76,704 KB
testcase_45 AC 91 ms
76,580 KB
testcase_46 AC 98 ms
76,768 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 70 ms
71,140 KB
testcase_52 WA -
testcase_53 AC 70 ms
71,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = [0] * N

for i in range(N):
    A[i] = int(input())

grundy = [0] * (N+1)

for i in range(N):
    grundy[i+1] = A[i] ^ grundy[i]


if grundy[N] == 0:
    print('Takahashi')
else:
    flag = False

    for i in range(1, N):
        if grundy[i] == 0:
            flag = True
            break

    if flag:
        print('Takahashi')
    else:
        print('Takanashi')
0