結果

問題 No.1314 N言っちゃダメゲーム (5)
コンテスト
ユーザー r_ishida
提出日時 2020-12-29 16:48:27
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 22 ms / 1,000 ms
+ 525µs
コード長 561 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 61 ms
コンパイル使用メモリ 15,104 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2026-09-10 18:20:17
合計ジャッジ時間 3,040 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
import math
def S(): return sys.stdin.readline().rstrip()
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 LS(): return list(sys.stdin.readline().rstrip().split())

m,k = MI()
x = math.floor((m-1)/(k+1))
y = m-1-x
w = l = 0
if y%2 == 0:
    w = y//2
    l = m-1-w
else:
    w = y//2 + x + 1
    l = m-1-w
if w > l:
    print("Win")
elif w < l:
    print("Lose")
else:
    print("Draw")
0