結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー rlangevin
提出日時 2023-01-24 00:28:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 253 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 82,152 KB
実行使用メモリ 53,744 KB
最終ジャッジ日時 2024-06-25 17:59:31
合計ジャッジ時間 2,557 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

M, K = map(int, input().split())
lose = (M - 1)//(K + 1)
win = M - 1 - lose
first, second = win%2, 0
if win%2:
    first += lose
else:
    second += lose
if first > second:
    print("Win")
elif first == second:
    print("Draw")
else:
    print("Lose")
0