結果

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

ソースコード

diff #

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

gote = m // (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