結果

問題 No.264 じゃんけん
ユーザー hosobikihosobiki
提出日時 2018-07-03 14:07:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 553 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,888 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-09-13 17:15:19
合計ジャッジ時間 944 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,772 KB
testcase_01 AC 16 ms
7,760 KB
testcase_02 AC 15 ms
7,724 KB
testcase_03 AC 17 ms
7,752 KB
testcase_04 AC 16 ms
7,908 KB
testcase_05 AC 16 ms
7,856 KB
testcase_06 AC 16 ms
7,832 KB
testcase_07 AC 16 ms
7,808 KB
testcase_08 AC 15 ms
7,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def main():
    text = sys.stdin.readline()
    param =  text.split(" ")
    my_hand = int(param[0])
    your_hand = int(param[1])
    
    if my_hand == your_hand:
        result = "Drew"
    elif (my_hand == 0 and your_hand == 1) or (my_hand == 1 and your_hand == 2) or (my_hand == 2 and your_hand == 0):
        result = "Won"
    elif (my_hand == 0 and your_hand == 2) or (my_hand == 1 and your_hand == 0) or (my_hand == 2 and your_hand == 1):
        result = "Lost"
    
    print(result)
    
    
if __name__ == "__main__":
    main()
0