結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
72,272 KB
testcase_01 AC 87 ms
72,236 KB
testcase_02 AC 87 ms
72,240 KB
testcase_03 AC 114 ms
78,668 KB
testcase_04 AC 113 ms
78,488 KB
testcase_05 AC 88 ms
72,112 KB
testcase_06 AC 111 ms
78,532 KB
testcase_07 AC 113 ms
78,244 KB
testcase_08 AC 112 ms
78,320 KB
testcase_09 AC 111 ms
78,348 KB
testcase_10 AC 111 ms
78,316 KB
testcase_11 AC 88 ms
72,112 KB
testcase_12 AC 112 ms
78,772 KB
testcase_13 AC 111 ms
78,332 KB
testcase_14 AC 112 ms
78,536 KB
testcase_15 AC 110 ms
78,312 KB
testcase_16 AC 112 ms
78,536 KB
testcase_17 AC 112 ms
78,552 KB
testcase_18 AC 112 ms
78,656 KB
testcase_19 AC 112 ms
78,672 KB
testcase_20 AC 89 ms
72,560 KB
testcase_21 AC 113 ms
78,708 KB
testcase_22 AC 110 ms
78,500 KB
testcase_23 AC 112 ms
78,640 KB
testcase_24 AC 113 ms
78,764 KB
testcase_25 AC 112 ms
78,308 KB
testcase_26 AC 113 ms
78,404 KB
testcase_27 AC 112 ms
78,644 KB
testcase_28 AC 109 ms
78,744 KB
testcase_29 AC 111 ms
78,352 KB
testcase_30 AC 114 ms
78,492 KB
testcase_31 AC 115 ms
78,352 KB
testcase_32 AC 119 ms
78,508 KB
testcase_33 AC 112 ms
78,768 KB
testcase_34 AC 111 ms
78,304 KB
testcase_35 AC 111 ms
78,352 KB
testcase_36 AC 110 ms
78,644 KB
testcase_37 AC 111 ms
78,284 KB
testcase_38 AC 111 ms
78,300 KB
testcase_39 AC 110 ms
78,668 KB
testcase_40 AC 110 ms
78,584 KB
testcase_41 AC 111 ms
78,632 KB
testcase_42 AC 111 ms
78,336 KB
testcase_43 AC 109 ms
78,320 KB
testcase_44 AC 111 ms
78,556 KB
testcase_45 AC 112 ms
78,652 KB
testcase_46 AC 111 ms
78,644 KB
testcase_47 AC 87 ms
72,272 KB
testcase_48 AC 88 ms
72,344 KB
testcase_49 AC 88 ms
72,276 KB
testcase_50 AC 88 ms
71,968 KB
testcase_51 WA -
testcase_52 AC 87 ms
72,368 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