結果

問題 No.102 トランプを奪え
ユーザー 👑 colognecologne
提出日時 2022-02-02 16:06:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 309 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 71,368 KB
最終ジャッジ日時 2023-09-02 02:50:23
合計ジャッジ時間 1,678 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,272 KB
testcase_01 AC 64 ms
71,336 KB
testcase_02 AC 65 ms
71,312 KB
testcase_03 AC 65 ms
71,368 KB
testcase_04 AC 66 ms
71,100 KB
testcase_05 AC 69 ms
71,292 KB
testcase_06 AC 66 ms
71,276 KB
testcase_07 AC 65 ms
71,300 KB
testcase_08 AC 68 ms
71,368 KB
testcase_09 AC 68 ms
71,308 KB
testcase_10 AC 67 ms
71,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


def input(): return sys.stdin.readline().rstrip()


def main():
    A, B, C, D = map(int, input().split())
    if max(A, B, C, D) <= 1 and (A ^ B ^ C ^ D) & 3 == 1 \
       or (A ^ B ^ C ^ D) & 3 == 0:
        print('Jiro')
    else:
        print('Taro')


if __name__ == '__main__':
    main()
0