結果

問題 No.946 箱箱箱
ユーザー pekempeypekempey
提出日時 2019-12-09 01:11:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 406 bytes
コンパイル時間 599 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 78,708 KB
最終ジャッジ日時 2023-08-31 00:09:34
合計ジャッジ時間 8,752 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
72,356 KB
testcase_01 AC 87 ms
72,288 KB
testcase_02 AC 88 ms
72,272 KB
testcase_03 AC 110 ms
78,164 KB
testcase_04 AC 109 ms
78,468 KB
testcase_05 WA -
testcase_06 AC 108 ms
78,472 KB
testcase_07 AC 109 ms
78,464 KB
testcase_08 AC 108 ms
78,048 KB
testcase_09 AC 108 ms
78,164 KB
testcase_10 AC 108 ms
78,708 KB
testcase_11 AC 85 ms
71,976 KB
testcase_12 AC 108 ms
78,164 KB
testcase_13 AC 108 ms
78,488 KB
testcase_14 AC 108 ms
78,544 KB
testcase_15 AC 107 ms
78,472 KB
testcase_16 AC 106 ms
78,176 KB
testcase_17 AC 107 ms
78,144 KB
testcase_18 AC 109 ms
78,444 KB
testcase_19 AC 109 ms
78,532 KB
testcase_20 AC 86 ms
71,924 KB
testcase_21 AC 109 ms
78,468 KB
testcase_22 AC 108 ms
78,464 KB
testcase_23 AC 107 ms
78,048 KB
testcase_24 AC 106 ms
78,168 KB
testcase_25 AC 105 ms
78,604 KB
testcase_26 AC 108 ms
78,524 KB
testcase_27 AC 105 ms
78,316 KB
testcase_28 AC 106 ms
78,400 KB
testcase_29 AC 105 ms
78,168 KB
testcase_30 AC 105 ms
78,168 KB
testcase_31 AC 107 ms
78,164 KB
testcase_32 AC 106 ms
78,400 KB
testcase_33 AC 106 ms
78,172 KB
testcase_34 AC 109 ms
78,464 KB
testcase_35 AC 106 ms
78,168 KB
testcase_36 AC 105 ms
78,340 KB
testcase_37 AC 105 ms
78,340 KB
testcase_38 AC 107 ms
78,452 KB
testcase_39 AC 105 ms
78,168 KB
testcase_40 AC 110 ms
78,460 KB
testcase_41 AC 117 ms
78,556 KB
testcase_42 AC 108 ms
78,276 KB
testcase_43 AC 108 ms
78,396 KB
testcase_44 AC 107 ms
78,052 KB
testcase_45 AC 108 ms
78,564 KB
testcase_46 AC 108 ms
78,276 KB
testcase_47 WA -
testcase_48 AC 87 ms
72,056 KB
testcase_49 AC 89 ms
72,312 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 AC 86 ms
72,160 KB
testcase_53 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import random

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' if random.randint(0, 1) == 0 else 'Takahashi')
elif N <= 8:
  print('Takahashi')
else:
  print('Takahashi' if aru else 'Takanashi')
0