結果
| 問題 | No.1314 N言っちゃダメゲーム (5) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-14 00:17:12 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 1,000 ms |
| コード長 | 223 bytes |
| 記録 | |
| コンパイル時間 | 513 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,232 KB |
| 最終ジャッジ日時 | 2026-04-04 18:59:19 |
| 合計ジャッジ時間 | 4,295 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
m, k = map(int, input().split())
gote = (m - 1) // (k + 1)
sente = m - gote - 1
sente_r = sente % 2
if sente_r == 0 and gote == 0:
print("Draw")
elif sente_r == 0 and gote > 0:
print("Lose")
else:
print("Win")