結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-05 21:31:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 1,497 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 71,592 KB
最終ジャッジ日時 2023-08-30 07:55:08
合計ジャッジ時間 5,352 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,108 KB
testcase_01 AC 73 ms
71,324 KB
testcase_02 AC 73 ms
71,232 KB
testcase_03 AC 74 ms
71,248 KB
testcase_04 AC 74 ms
71,172 KB
testcase_05 AC 74 ms
71,308 KB
testcase_06 AC 76 ms
71,216 KB
testcase_07 AC 75 ms
71,236 KB
testcase_08 AC 74 ms
71,312 KB
testcase_09 AC 73 ms
71,204 KB
testcase_10 WA -
testcase_11 AC 75 ms
71,284 KB
testcase_12 AC 74 ms
71,232 KB
testcase_13 WA -
testcase_14 AC 73 ms
71,292 KB
testcase_15 AC 74 ms
71,040 KB
testcase_16 AC 74 ms
71,332 KB
testcase_17 AC 75 ms
71,296 KB
testcase_18 AC 74 ms
71,236 KB
testcase_19 AC 73 ms
71,268 KB
testcase_20 AC 75 ms
71,244 KB
testcase_21 AC 74 ms
71,104 KB
testcase_22 AC 74 ms
70,872 KB
testcase_23 AC 73 ms
71,096 KB
testcase_24 AC 75 ms
71,316 KB
testcase_25 AC 75 ms
71,172 KB
testcase_26 AC 76 ms
71,044 KB
testcase_27 WA -
testcase_28 AC 73 ms
71,240 KB
testcase_29 WA -
testcase_30 AC 74 ms
71,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m, k = map(int, input().split())
x = (m-1)//(k+1)
y = (m-1)-x

if y%2 == 0:
    first = y//2+x//2
    second = m-1-first
else:
    first = (y+1)//2+(x+1)//2
    second = m-1-first
if first > second:
    print('Win')
elif first < second:
    print('Lose')
else:
    print('Draw')
0