結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-05 21:33:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 376 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 87,020 KB
実行使用メモリ 71,532 KB
最終ジャッジ日時 2023-08-30 08:00:22
合計ジャッジ時間 4,524 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,300 KB
testcase_01 AC 73 ms
71,420 KB
testcase_02 AC 73 ms
71,228 KB
testcase_03 AC 72 ms
71,332 KB
testcase_04 AC 73 ms
71,256 KB
testcase_05 AC 71 ms
71,156 KB
testcase_06 AC 71 ms
71,372 KB
testcase_07 AC 72 ms
71,220 KB
testcase_08 AC 72 ms
71,252 KB
testcase_09 AC 73 ms
70,992 KB
testcase_10 WA -
testcase_11 AC 73 ms
71,384 KB
testcase_12 AC 73 ms
71,372 KB
testcase_13 WA -
testcase_14 AC 72 ms
71,288 KB
testcase_15 AC 72 ms
71,348 KB
testcase_16 AC 72 ms
71,388 KB
testcase_17 AC 72 ms
71,464 KB
testcase_18 AC 72 ms
71,472 KB
testcase_19 AC 71 ms
71,292 KB
testcase_20 AC 72 ms
71,272 KB
testcase_21 AC 71 ms
71,496 KB
testcase_22 AC 72 ms
71,224 KB
testcase_23 AC 71 ms
71,252 KB
testcase_24 AC 72 ms
71,380 KB
testcase_25 AC 72 ms
70,988 KB
testcase_26 AC 72 ms
71,484 KB
testcase_27 WA -
testcase_28 AC 71 ms
71,300 KB
testcase_29 WA -
testcase_30 AC 72 ms
70,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if x == 0:
    if (m-1)%2 == 1:
        print('Win')
    else:
        print('Draw')
    exit()

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