結果

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

テストケース

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

ソースコード

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 = sum(i % (K+1) == 1 for i in range(2,M+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