結果

問題 No.1314 N言っちゃダメゲーム (5)
ユーザー Kiri8128Kiri8128
提出日時 2020-12-11 00:37:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 575 ms
コンパイル使用メモリ 11,548 KB
実行使用メモリ 10,000 KB
最終ジャッジ日時 2023-10-20 01:09:11
合計ジャッジ時間 2,066 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

M, K = map(int, input().split())
B = ((M - 1 + K) // (K + 1) - 1) & 1
A = (M - 1 - B) & 1
C = A * 2 + B
print("Lose" if C == 1 else "Draw" if C == 0 else "Win")
0