結果
問題 | No.264 じゃんけん |
ユーザー | StarMatyan |
提出日時 | 2018-07-18 00:35:26 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 27 ms / 5,000 ms |
コード長 | 436 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-05-05 17:14:14 |
合計ジャッジ時間 | 928 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 24 ms
10,752 KB |
testcase_01 | AC | 25 ms
10,752 KB |
testcase_02 | AC | 26 ms
10,880 KB |
testcase_03 | AC | 26 ms
10,752 KB |
testcase_04 | AC | 26 ms
10,880 KB |
testcase_05 | AC | 27 ms
10,752 KB |
testcase_06 | AC | 24 ms
10,880 KB |
testcase_07 | AC | 25 ms
10,880 KB |
testcase_08 | AC | 25 ms
10,752 KB |
ソースコード
#じゃんけん関数 firstdata = input(); secdata = firstdata.split(" "); mydata = int(secdata[0]); youdata = int(secdata[1]); kekka = ""; #判定 if (mydata == 0 and youdata == 1) or (mydata == 1 and youdata == 2) or (mydata == 2 and youdata == 0): kekka = "Won"; elif (mydata == 0 and youdata == 0) or (mydata == 1 and youdata == 1) or (mydata == 2 and youdata == 2): kekka = "Drew"; else: kekka = "Lost"; #出力 print(kekka);