結果

問題 No.8 N言っちゃダメゲーム
ユーザー konchanksukonchanksu
提出日時 2020-04-29 14:56:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-08-19 02:21:13
合計ジャッジ時間 1,146 ms
ジャッジサーバーID
(参考情報)
judge10 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,804 KB
testcase_01 AC 14 ms
7,828 KB
testcase_02 AC 12 ms
7,844 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 13 ms
7,792 KB
testcase_06 AC 13 ms
7,824 KB
testcase_07 AC 12 ms
7,828 KB
testcase_08 AC 14 ms
7,760 KB
testcase_09 AC 13 ms
7,952 KB
testcase_10 AC 14 ms
7,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

P = int(input())
N, K = [], []
for i in range(P):
    te, mp = map(int, input().split())
    N.append(te), K.append(mp)

N = list(map(lambda x:x-1, N))
for i in range(P):
    if N[i] % (K[i] * 2 - 1) != 0 and N[i] % (K[i] * 2 - 1) != K[i] + 1:
        print('Win')
    else:
        print('Lose')
0