結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー lloyz
提出日時 2023-07-14 00:14:28
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 298 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-15 09:31:16
合計ジャッジ時間 1,944 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

m, k = map(int, input().split())

gote = (m - 1) // (k + 1)
sente = m - gote - 1
sente_r = sente % 2
gote_r = gote % 2
if sente_r == 0 and gote_r == 0:
    print("Draw")
elif sente_r == 0 and gote_r == 1:
    print("Lose")
elif sente_r == 1 and gote_r == 0:
    print("Win")
else:
    print("Win")
0