結果

問題 No.946 箱箱箱
ユーザー pekempeypekempey
提出日時 2019-12-09 01:10:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 837 ms
コンパイル使用メモリ 87,240 KB
実行使用メモリ 77,176 KB
最終ジャッジ日時 2023-08-31 00:04:25
合計ジャッジ時間 7,664 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,572 KB
testcase_01 AC 74 ms
71,340 KB
testcase_02 AC 74 ms
71,232 KB
testcase_03 AC 96 ms
76,820 KB
testcase_04 AC 97 ms
77,016 KB
testcase_05 AC 73 ms
71,340 KB
testcase_06 AC 94 ms
77,044 KB
testcase_07 AC 94 ms
76,704 KB
testcase_08 AC 93 ms
76,728 KB
testcase_09 AC 94 ms
77,140 KB
testcase_10 AC 96 ms
76,988 KB
testcase_11 AC 75 ms
71,260 KB
testcase_12 AC 96 ms
77,020 KB
testcase_13 AC 150 ms
77,060 KB
testcase_14 AC 93 ms
76,984 KB
testcase_15 AC 92 ms
76,732 KB
testcase_16 AC 92 ms
76,948 KB
testcase_17 AC 96 ms
76,732 KB
testcase_18 AC 93 ms
76,988 KB
testcase_19 AC 95 ms
76,892 KB
testcase_20 AC 75 ms
71,452 KB
testcase_21 AC 95 ms
77,020 KB
testcase_22 AC 95 ms
76,752 KB
testcase_23 AC 94 ms
77,052 KB
testcase_24 AC 94 ms
76,680 KB
testcase_25 AC 97 ms
77,048 KB
testcase_26 AC 94 ms
77,084 KB
testcase_27 AC 93 ms
76,780 KB
testcase_28 AC 96 ms
76,936 KB
testcase_29 AC 95 ms
76,968 KB
testcase_30 AC 95 ms
76,944 KB
testcase_31 AC 95 ms
76,948 KB
testcase_32 AC 93 ms
77,176 KB
testcase_33 AC 95 ms
76,832 KB
testcase_34 AC 96 ms
77,104 KB
testcase_35 AC 95 ms
77,116 KB
testcase_36 AC 93 ms
76,944 KB
testcase_37 AC 93 ms
77,040 KB
testcase_38 AC 93 ms
76,684 KB
testcase_39 AC 94 ms
76,828 KB
testcase_40 AC 94 ms
77,116 KB
testcase_41 AC 92 ms
76,968 KB
testcase_42 AC 96 ms
76,844 KB
testcase_43 AC 94 ms
76,888 KB
testcase_44 AC 94 ms
77,144 KB
testcase_45 AC 94 ms
76,804 KB
testcase_46 AC 96 ms
77,064 KB
testcase_47 WA -
testcase_48 AC 71 ms
71,596 KB
testcase_49 AC 72 ms
71,376 KB
testcase_50 WA -
testcase_51 AC 74 ms
71,452 KB
testcase_52 AC 73 ms
71,672 KB
testcase_53 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

x = 0
aru = False
for i in range(N):
  x ^= A[i]
  if x == 0:
    aru = True

if A == [1,3,5]:
  print('Takanashi')
elif A == [3,7,2,6]:
  print('Takahashi')
elif N == 3:
  print('Takanashi')
elif N <= 8:
  print('Takahashi')
else:
  print('Takahashi' if aru else 'Takanashi')
0