結果

問題 No.102 トランプを奪え
ユーザー yakeshibayakeshiba
提出日時 2021-04-04 13:51:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 287 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 71,456 KB
最終ジャッジ日時 2023-08-27 14:52:39
合計ジャッジ時間 2,068 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,308 KB
testcase_01 AC 75 ms
71,456 KB
testcase_02 AC 76 ms
71,180 KB
testcase_03 AC 74 ms
71,264 KB
testcase_04 AC 77 ms
71,156 KB
testcase_05 AC 81 ms
71,296 KB
testcase_06 AC 76 ms
71,208 KB
testcase_07 AC 75 ms
71,220 KB
testcase_08 AC 77 ms
71,264 KB
testcase_09 AC 78 ms
71,360 KB
testcase_10 AC 78 ms
71,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n1, n2, n3, n4 = map(int,input().split())

gr = [0]*20

for i in range(1,20):
    for j in range(20):
        if j not in gr[max(0,i-3):i]:
            tmp = j
            break
    gr[i] = tmp
    
ans = gr[n1]^gr[n2]^gr[n3]^gr[n4]
if ans == 0:
    print("Jiro")
else:
    print("Taro")
0