結果

問題 No.946 箱箱箱
ユーザー pekempeypekempey
提出日時 2019-12-09 01:16:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 10,944 KB
実行使用メモリ 9,044 KB
最終ジャッジ日時 2023-08-31 00:14:45
合計ジャッジ時間 3,076 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,936 KB
testcase_01 AC 18 ms
8,904 KB
testcase_02 AC 18 ms
8,812 KB
testcase_03 AC 22 ms
9,040 KB
testcase_04 AC 22 ms
8,852 KB
testcase_05 WA -
testcase_06 AC 23 ms
9,040 KB
testcase_07 AC 23 ms
8,948 KB
testcase_08 AC 22 ms
9,016 KB
testcase_09 AC 22 ms
8,764 KB
testcase_10 AC 23 ms
8,940 KB
testcase_11 AC 18 ms
8,896 KB
testcase_12 AC 23 ms
8,832 KB
testcase_13 AC 22 ms
8,956 KB
testcase_14 AC 22 ms
9,020 KB
testcase_15 AC 23 ms
8,880 KB
testcase_16 AC 23 ms
8,828 KB
testcase_17 AC 23 ms
8,944 KB
testcase_18 AC 23 ms
8,836 KB
testcase_19 AC 23 ms
8,892 KB
testcase_20 AC 19 ms
8,796 KB
testcase_21 AC 23 ms
8,900 KB
testcase_22 AC 23 ms
8,884 KB
testcase_23 AC 23 ms
8,892 KB
testcase_24 AC 22 ms
8,896 KB
testcase_25 AC 23 ms
8,832 KB
testcase_26 AC 22 ms
9,024 KB
testcase_27 AC 22 ms
8,824 KB
testcase_28 AC 23 ms
8,960 KB
testcase_29 AC 22 ms
8,876 KB
testcase_30 AC 23 ms
9,028 KB
testcase_31 AC 22 ms
8,884 KB
testcase_32 AC 22 ms
8,964 KB
testcase_33 AC 23 ms
8,896 KB
testcase_34 AC 22 ms
8,964 KB
testcase_35 AC 23 ms
8,880 KB
testcase_36 AC 22 ms
8,988 KB
testcase_37 AC 23 ms
8,960 KB
testcase_38 AC 22 ms
8,768 KB
testcase_39 AC 22 ms
8,892 KB
testcase_40 AC 22 ms
8,928 KB
testcase_41 AC 22 ms
9,024 KB
testcase_42 AC 23 ms
8,964 KB
testcase_43 AC 23 ms
8,916 KB
testcase_44 AC 22 ms
8,820 KB
testcase_45 AC 22 ms
8,848 KB
testcase_46 AC 22 ms
9,044 KB
testcase_47 WA -
testcase_48 AC 18 ms
8,864 KB
testcase_49 AC 18 ms
8,880 KB
testcase_50 WA -
testcase_51 AC 19 ms
8,940 KB
testcase_52 AC 18 ms
8,956 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