結果

問題 No.264 じゃんけん
ユーザー Fullmoon85072Fullmoon85072
提出日時 2020-08-01 15:41:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 474 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 71,516 KB
最終ジャッジ日時 2023-09-22 10:51:26
合計ジャッジ時間 1,576 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,028 KB
testcase_01 AC 73 ms
71,384 KB
testcase_02 AC 74 ms
71,276 KB
testcase_03 AC 72 ms
71,516 KB
testcase_04 AC 78 ms
71,484 KB
testcase_05 AC 72 ms
71,372 KB
testcase_06 AC 74 ms
71,348 KB
testcase_07 AC 74 ms
71,376 KB
testcase_08 AC 74 ms
71,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

own, opponent = input().split(" ")
own = int(own)
opponent = int(opponent)

if own == 0:
    if opponent == 0:
        print("Drew")
    elif opponent == 1:
        print("Won")
    else:
        print("Lost")

elif own == 1:
    if opponent == 0:
        print("Lost")
    elif opponent == 1:
        print("Drew")
    else:
        print("Won")

else:
    if opponent == 0:
        print("Won")
    elif opponent == 1:
        print("Lost")
    else:
        print("Drew")
0