結果

問題 No.946 箱箱箱
ユーザー pekempeypekempey
提出日時 2019-12-09 01:16:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 408 bytes
コンパイル時間 550 ms
コンパイル使用メモリ 10,864 KB
実行使用メモリ 9,024 KB
最終ジャッジ日時 2023-09-09 09:51:34
合計ジャッジ時間 3,137 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,824 KB
testcase_01 AC 18 ms
8,704 KB
testcase_02 AC 18 ms
8,724 KB
testcase_03 AC 22 ms
8,784 KB
testcase_04 AC 22 ms
8,936 KB
testcase_05 WA -
testcase_06 AC 22 ms
8,876 KB
testcase_07 AC 22 ms
8,868 KB
testcase_08 AC 22 ms
8,860 KB
testcase_09 AC 21 ms
8,760 KB
testcase_10 AC 22 ms
9,000 KB
testcase_11 AC 18 ms
8,708 KB
testcase_12 AC 21 ms
8,800 KB
testcase_13 AC 22 ms
8,844 KB
testcase_14 AC 22 ms
9,000 KB
testcase_15 AC 22 ms
8,780 KB
testcase_16 AC 22 ms
8,872 KB
testcase_17 AC 22 ms
8,928 KB
testcase_18 AC 22 ms
8,844 KB
testcase_19 AC 22 ms
8,916 KB
testcase_20 AC 18 ms
8,720 KB
testcase_21 AC 22 ms
8,888 KB
testcase_22 AC 22 ms
8,804 KB
testcase_23 AC 22 ms
8,784 KB
testcase_24 AC 22 ms
9,024 KB
testcase_25 AC 22 ms
8,888 KB
testcase_26 AC 22 ms
8,860 KB
testcase_27 AC 22 ms
8,912 KB
testcase_28 AC 22 ms
8,796 KB
testcase_29 AC 22 ms
8,780 KB
testcase_30 AC 22 ms
8,872 KB
testcase_31 AC 22 ms
8,864 KB
testcase_32 AC 22 ms
8,808 KB
testcase_33 AC 22 ms
8,868 KB
testcase_34 AC 22 ms
8,944 KB
testcase_35 AC 22 ms
8,888 KB
testcase_36 AC 22 ms
8,892 KB
testcase_37 AC 22 ms
8,996 KB
testcase_38 AC 22 ms
8,796 KB
testcase_39 AC 22 ms
8,872 KB
testcase_40 AC 22 ms
8,856 KB
testcase_41 AC 22 ms
8,840 KB
testcase_42 AC 22 ms
8,868 KB
testcase_43 AC 22 ms
8,928 KB
testcase_44 AC 22 ms
8,852 KB
testcase_45 AC 23 ms
8,824 KB
testcase_46 AC 23 ms
8,948 KB
testcase_47 WA -
testcase_48 AC 18 ms
8,748 KB
testcase_49 AC 18 ms
8,700 KB
testcase_50 AC 19 ms
8,932 KB
testcase_51 WA -
testcase_52 AC 17 ms
8,788 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