結果

問題 No.102 トランプを奪え
ユーザー gigurururugigurururu
提出日時 2014-12-12 21:01:29
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 236 bytes
コンパイル時間 2,254 ms
コンパイル使用メモリ 77,444 KB
実行使用メモリ 76,500 KB
最終ジャッジ日時 2023-09-02 14:23:24
合計ジャッジ時間 3,868 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
76,500 KB
testcase_01 AC 77 ms
76,132 KB
testcase_02 AC 75 ms
75,932 KB
testcase_03 AC 76 ms
76,156 KB
testcase_04 AC 76 ms
76,308 KB
testcase_05 AC 76 ms
76,500 KB
testcase_06 AC 76 ms
76,144 KB
testcase_07 AC 77 ms
76,164 KB
testcase_08 AC 77 ms
76,288 KB
testcase_09 AC 77 ms
76,132 KB
testcase_10 AC 77 ms
76,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8
N = [int(i)%4 for i in raw_input().split()]

# N%4の全てのXORを取ったときに0になればバランスがとれている状態なので、後攻必勝
print("Jiro" if reduce(lambda x,y: x^y,N)==0 else "Taro")
0