結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー titiatitia
提出日時 2020-12-15 06:17:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 11,684 KB
実行使用メモリ 9,952 KB
最終ジャッジ日時 2023-10-20 05:44:42
合計ジャッジ時間 2,234 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

M,K=map(int,input().split())

"""
A=[-1,-1]
for N in range(2,M+1):
    if 1<=(N-1)%(K+1)<=K:
        A.append(1)
    else:
        A.append(0)

print(A)
"""     
    
ALL=M-1
LOSE=M//(K+1)
WIN=ALL-LOSE

WIN%=2
LOSE%=2

if WIN==1:
    print("Win")
else:
    if LOSE==1:
        print("Lose")
    else:
        print("Draw")
0