結果

問題 No.264 じゃんけん
ユーザー RinTabataRinTabata
提出日時 2023-11-05 12:50:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 486 bytes
コンパイル時間 552 ms
コンパイル使用メモリ 11,888 KB
実行使用メモリ 10,108 KB
最終ジャッジ日時 2023-11-05 12:50:53
合計ジャッジ時間 1,901 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,108 KB
testcase_01 AC 28 ms
10,108 KB
testcase_02 AC 28 ms
10,108 KB
testcase_03 AC 28 ms
10,108 KB
testcase_04 AC 29 ms
10,108 KB
testcase_05 AC 28 ms
10,108 KB
testcase_06 AC 28 ms
10,108 KB
testcase_07 AC 28 ms
10,108 KB
testcase_08 AC 28 ms
10,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())

def result(x):
    if x == 3:
        return "Won"
    elif x == 4:
        return "Lost"
    else:
        return "Drew"

if N == 0 and K == 1:
    x = 3
elif N == 0 and K == 2:
    x = 4
elif N == 0 and K == 0:
    x = 5
elif N == 1 and K == 2:
    x = 3
elif N == 1 and K == 0:
    x = 4
elif N == 1 and K == 1:
    x = 5
elif N == 2 and K == 0:
    x = 3
elif N == 2 and K == 1:
    x = 4
else:
    x = 5

show_result = result(x)

print(show_result)
0