結果
問題 | No.264 じゃんけん |
ユーザー | hmh5130 |
提出日時 | 2017-06-16 15:12:23 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 34 ms / 5,000 ms |
コード長 | 437 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 9,984 KB |
最終ジャッジ日時 | 2024-04-08 13:32:32 |
合計ジャッジ時間 | 980 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 34 ms
9,984 KB |
testcase_01 | AC | 34 ms
9,984 KB |
testcase_02 | AC | 33 ms
9,984 KB |
testcase_03 | AC | 31 ms
9,984 KB |
testcase_04 | AC | 32 ms
9,984 KB |
testcase_05 | AC | 32 ms
9,984 KB |
testcase_06 | AC | 30 ms
9,984 KB |
testcase_07 | AC | 30 ms
9,984 KB |
testcase_08 | AC | 31 ms
9,984 KB |
ソースコード
first = input() split_first = first.split() N = int(split_first[0]) K = int(split_first[1]) if(N==K): print('Drew') else: if(N==0): if(K==1): print('Won') else: # K=2 print('Lost') elif(N==1): if(K==0): print('Lost') else: # K=2 print('Won') else: #N=2 if(K==0): print('Won') else: #K=1 print('Lost')