結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー 👑 Kazun
提出日時 2021-07-15 19:41:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-07-04 20:30:32
合計ジャッジ時間 2,479 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

M,K=map(int,input().split())

#後手必勝の回数
B=M//(K+1)

#先手必勝の回数
A=M-1-B

if A%2==0:
    if B==0:
        print("Draw")
    else:
        print("Lose")
else:
    print("Win")
0