結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー 👑 KazunKazun
提出日時 2021-07-15 19:41:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 985 ms
コンパイル使用メモリ 86,624 KB
実行使用メモリ 71,540 KB
最終ジャッジ日時 2023-09-18 03:53:33
合計ジャッジ時間 4,408 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,356 KB
testcase_01 AC 70 ms
71,248 KB
testcase_02 AC 69 ms
71,408 KB
testcase_03 AC 69 ms
71,432 KB
testcase_04 AC 71 ms
71,048 KB
testcase_05 WA -
testcase_06 AC 70 ms
71,212 KB
testcase_07 AC 69 ms
71,184 KB
testcase_08 AC 70 ms
71,212 KB
testcase_09 WA -
testcase_10 AC 69 ms
71,244 KB
testcase_11 AC 70 ms
71,320 KB
testcase_12 WA -
testcase_13 AC 72 ms
71,276 KB
testcase_14 AC 70 ms
71,184 KB
testcase_15 AC 70 ms
71,416 KB
testcase_16 AC 70 ms
71,512 KB
testcase_17 AC 69 ms
71,348 KB
testcase_18 AC 70 ms
71,420 KB
testcase_19 AC 70 ms
71,368 KB
testcase_20 AC 70 ms
71,188 KB
testcase_21 AC 69 ms
71,340 KB
testcase_22 AC 68 ms
71,268 KB
testcase_23 AC 69 ms
71,408 KB
testcase_24 WA -
testcase_25 AC 69 ms
71,124 KB
testcase_26 AC 69 ms
71,408 KB
testcase_27 WA -
testcase_28 AC 70 ms
71,540 KB
testcase_29 AC 70 ms
71,236 KB
testcase_30 AC 70 ms
71,440 KB
権限があれば一括ダウンロードができます

ソースコード

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