結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー ayaoniayaoni
提出日時 2020-12-11 01:25:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 631 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 81,848 KB
実行使用メモリ 53,588 KB
最終ジャッジ日時 2023-10-20 01:13:46
合計ジャッジ時間 2,383 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,404 KB
testcase_01 AC 38 ms
53,404 KB
testcase_02 AC 36 ms
53,404 KB
testcase_03 AC 36 ms
53,404 KB
testcase_04 AC 37 ms
53,404 KB
testcase_05 AC 36 ms
53,404 KB
testcase_06 WA -
testcase_07 AC 39 ms
53,404 KB
testcase_08 WA -
testcase_09 AC 36 ms
53,404 KB
testcase_10 WA -
testcase_11 AC 37 ms
53,404 KB
testcase_12 AC 37 ms
53,404 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 37 ms
53,404 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 36 ms
53,404 KB
testcase_19 AC 36 ms
53,404 KB
testcase_20 WA -
testcase_21 AC 36 ms
53,404 KB
testcase_22 WA -
testcase_23 AC 35 ms
53,404 KB
testcase_24 AC 37 ms
53,404 KB
testcase_25 AC 36 ms
53,404 KB
testcase_26 AC 37 ms
53,404 KB
testcase_27 WA -
testcase_28 AC 36 ms
53,404 KB
testcase_29 WA -
testcase_30 AC 37 ms
53,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


M,K = MI()

second = (M-1)//(K+1)
first = M-1-second

win = (first+1)//2+second//2

if win > (M-1)//2:
    print('Win')
elif win < M//2:
    print('Lose')
else:
    print('Draw')
0