結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,436 KB
testcase_01 AC 75 ms
71,380 KB
testcase_02 AC 73 ms
71,360 KB
testcase_03 AC 76 ms
71,168 KB
testcase_04 AC 72 ms
71,488 KB
testcase_05 AC 76 ms
71,620 KB
testcase_06 AC 75 ms
71,180 KB
testcase_07 AC 74 ms
71,240 KB
testcase_08 AC 75 ms
71,312 KB
testcase_09 AC 75 ms
71,368 KB
testcase_10 WA -
testcase_11 AC 76 ms
71,308 KB
testcase_12 AC 76 ms
71,440 KB
testcase_13 WA -
testcase_14 AC 75 ms
71,376 KB
testcase_15 AC 76 ms
71,580 KB
testcase_16 AC 75 ms
71,248 KB
testcase_17 AC 76 ms
71,400 KB
testcase_18 AC 77 ms
71,360 KB
testcase_19 AC 76 ms
71,324 KB
testcase_20 AC 75 ms
71,364 KB
testcase_21 AC 76 ms
71,400 KB
testcase_22 AC 74 ms
71,408 KB
testcase_23 AC 74 ms
71,464 KB
testcase_24 AC 75 ms
71,364 KB
testcase_25 AC 75 ms
71,528 KB
testcase_26 AC 75 ms
71,364 KB
testcase_27 WA -
testcase_28 AC 76 ms
71,240 KB
testcase_29 WA -
testcase_30 AC 76 ms
71,352 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
    if x%2 == 0:
        first += x//2
        second += x//2
    else:
        first += x//2
        second += x//2+1
else:
    first = (y+1)//2
    second = y//2
    if x%2 == 0:
        first += x//2
        second += x//2
    else:
        first += x//2+1
        second += x//2
if first > second:
    print('Win')
elif first < second:
    print('Lose')
else:
    print('Draw')
0