結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー 👑 KazunKazun
提出日時 2021-07-15 19:49:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 392 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 71,592 KB
最終ジャッジ日時 2023-09-18 04:06:19
合計ジャッジ時間 3,948 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,072 KB
testcase_01 AC 70 ms
71,112 KB
testcase_02 AC 71 ms
71,412 KB
testcase_03 AC 71 ms
71,404 KB
testcase_04 AC 71 ms
71,312 KB
testcase_05 WA -
testcase_06 AC 70 ms
71,316 KB
testcase_07 AC 72 ms
71,368 KB
testcase_08 AC 71 ms
71,304 KB
testcase_09 WA -
testcase_10 AC 70 ms
71,444 KB
testcase_11 AC 72 ms
71,300 KB
testcase_12 WA -
testcase_13 AC 71 ms
71,236 KB
testcase_14 AC 72 ms
71,548 KB
testcase_15 AC 72 ms
71,240 KB
testcase_16 AC 72 ms
71,276 KB
testcase_17 AC 72 ms
71,512 KB
testcase_18 AC 70 ms
71,120 KB
testcase_19 AC 71 ms
71,148 KB
testcase_20 AC 70 ms
71,412 KB
testcase_21 AC 70 ms
71,240 KB
testcase_22 AC 70 ms
71,228 KB
testcase_23 AC 71 ms
71,292 KB
testcase_24 WA -
testcase_25 AC 70 ms
71,216 KB
testcase_26 AC 70 ms
71,416 KB
testcase_27 WA -
testcase_28 AC 71 ms
71,308 KB
testcase_29 AC 71 ms
71,516 KB
testcase_30 AC 70 ms
71,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

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

X=(A+1)//2; Y=A//2

if A%2==1:
    X+=B
else:
    Y+=B

if X>Y:
    print("Win")
elif X==Y:
    print("Draw")
else:
    print("Lose")
0