結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
72,260 KB
testcase_01 AC 88 ms
72,260 KB
testcase_02 AC 88 ms
72,208 KB
testcase_03 AC 113 ms
78,452 KB
testcase_04 AC 113 ms
78,472 KB
testcase_05 WA -
testcase_06 AC 112 ms
78,644 KB
testcase_07 AC 112 ms
78,264 KB
testcase_08 AC 114 ms
78,304 KB
testcase_09 AC 113 ms
78,264 KB
testcase_10 AC 113 ms
78,112 KB
testcase_11 AC 90 ms
72,300 KB
testcase_12 AC 113 ms
78,120 KB
testcase_13 AC 114 ms
78,268 KB
testcase_14 AC 113 ms
78,532 KB
testcase_15 AC 114 ms
78,108 KB
testcase_16 AC 114 ms
78,128 KB
testcase_17 AC 114 ms
78,484 KB
testcase_18 AC 114 ms
78,348 KB
testcase_19 AC 111 ms
78,580 KB
testcase_20 AC 91 ms
71,924 KB
testcase_21 AC 114 ms
78,312 KB
testcase_22 AC 113 ms
78,108 KB
testcase_23 AC 113 ms
78,264 KB
testcase_24 AC 113 ms
78,472 KB
testcase_25 AC 114 ms
78,716 KB
testcase_26 AC 112 ms
78,676 KB
testcase_27 AC 116 ms
78,220 KB
testcase_28 AC 115 ms
78,300 KB
testcase_29 AC 116 ms
78,128 KB
testcase_30 AC 115 ms
78,260 KB
testcase_31 AC 116 ms
78,476 KB
testcase_32 AC 115 ms
78,224 KB
testcase_33 AC 115 ms
78,348 KB
testcase_34 AC 113 ms
78,312 KB
testcase_35 AC 115 ms
78,580 KB
testcase_36 AC 114 ms
78,732 KB
testcase_37 AC 114 ms
78,476 KB
testcase_38 AC 113 ms
78,464 KB
testcase_39 AC 113 ms
78,160 KB
testcase_40 AC 114 ms
78,312 KB
testcase_41 AC 112 ms
78,584 KB
testcase_42 AC 112 ms
78,556 KB
testcase_43 AC 114 ms
78,452 KB
testcase_44 AC 114 ms
78,308 KB
testcase_45 AC 115 ms
78,104 KB
testcase_46 AC 113 ms
78,132 KB
testcase_47 WA -
testcase_48 AC 91 ms
72,060 KB
testcase_49 AC 89 ms
72,376 KB
testcase_50 WA -
testcase_51 AC 91 ms
72,160 KB
testcase_52 AC 89 ms
72,108 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