結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-05 21:41:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 260 bytes
コンパイル時間 1,630 ms
コンパイル使用メモリ 86,784 KB
実行使用メモリ 71,412 KB
最終ジャッジ日時 2023-08-30 08:19:31
合計ジャッジ時間 4,212 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,076 KB
testcase_01 AC 72 ms
71,184 KB
testcase_02 AC 72 ms
71,324 KB
testcase_03 AC 72 ms
71,156 KB
testcase_04 AC 71 ms
70,912 KB
testcase_05 AC 72 ms
71,188 KB
testcase_06 AC 71 ms
71,412 KB
testcase_07 AC 72 ms
71,176 KB
testcase_08 AC 72 ms
71,128 KB
testcase_09 AC 72 ms
71,288 KB
testcase_10 AC 71 ms
71,288 KB
testcase_11 AC 71 ms
71,172 KB
testcase_12 AC 71 ms
71,160 KB
testcase_13 AC 72 ms
71,224 KB
testcase_14 AC 71 ms
71,264 KB
testcase_15 AC 72 ms
71,152 KB
testcase_16 AC 72 ms
71,188 KB
testcase_17 AC 72 ms
71,152 KB
testcase_18 AC 72 ms
71,156 KB
testcase_19 AC 72 ms
71,324 KB
testcase_20 AC 71 ms
71,204 KB
testcase_21 AC 71 ms
71,124 KB
testcase_22 AC 70 ms
71,152 KB
testcase_23 AC 72 ms
71,172 KB
testcase_24 AC 71 ms
71,124 KB
testcase_25 AC 73 ms
71,060 KB
testcase_26 AC 73 ms
71,188 KB
testcase_27 AC 71 ms
71,072 KB
testcase_28 AC 72 ms
70,912 KB
testcase_29 AC 74 ms
71,164 KB
testcase_30 AC 72 ms
71,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if y%2 == 0:
    first = y//2
    second = y//2+x
else:
    first = (y+1)//2+x
    second = y//2

if first > second:
    print('Win')
elif first < second:
    print('Lose')
else:
    print('Draw')
0