結果
問題 | No.1314 N言っちゃダメゲーム (5) |
ユーザー |
|
提出日時 | 2025-01-14 09:28:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 1,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 264 ms |
コンパイル使用メモリ | 82,644 KB |
実行使用メモリ | 53,756 KB |
最終ジャッジ日時 | 2025-01-14 09:28:52 |
合計ジャッジ時間 | 2,490 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
M,K = map(int,input().split())if K>=M-1:if M%2==0:print("Win")else:print("Draw")else:m = (M-K-2)//(K+1)+1if M%2==0 and m%2==0:print("Win")elif M%2==0 and m%2==1:print("Lose")elif M%2==1 and m%2==0:print("Lose")else:print("Win")