結果
問題 |
No.1314 N言っちゃダメゲーム (5)
|
ユーザー |
![]() |
提出日時 | 2020-12-29 16:48:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 561 bytes |
コンパイル時間 | 173 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-05 18:11:25 |
合計ジャッジ時間 | 2,214 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
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")