結果

問題 No.1129 Rating じゃんけん
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2021-07-04 17:57:00
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 7,964 KB
最終ジャッジ日時 2023-09-13 23:38:03
合計ジャッジ時間 1,559 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,732 KB
testcase_01 AC 15 ms
7,964 KB
testcase_02 AC 15 ms
7,820 KB
testcase_03 AC 15 ms
7,792 KB
testcase_04 AC 17 ms
7,832 KB
testcase_05 AC 15 ms
7,804 KB
testcase_06 AC 16 ms
7,804 KB
testcase_07 AC 16 ms
7,792 KB
testcase_08 AC 15 ms
7,808 KB
testcase_09 AC 16 ms
7,804 KB
testcase_10 AC 16 ms
7,836 KB
testcase_11 AC 16 ms
7,908 KB
testcase_12 AC 15 ms
7,924 KB
testcase_13 AC 15 ms
7,792 KB
testcase_14 AC 15 ms
7,796 KB
testcase_15 AC 15 ms
7,820 KB
testcase_16 AC 15 ms
7,912 KB
testcase_17 AC 16 ms
7,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d = map(int, input().split())
ans = ["Draw", "null", "tRue"]

if a > c:
    t = 1
elif c > a:
    t = 2
else:
    f = (b - d + 3) % 3
    t = [0, 2, 1][f]

print(ans[t])
0