結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー | konchanksu |
提出日時 | 2020-04-29 14:44:13 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 124 ms |
コンパイル使用メモリ | 10,704 KB |
実行使用メモリ | 7,964 KB |
最終ジャッジ日時 | 2023-08-19 01:56:24 |
合計ジャッジ時間 | 1,019 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 13 ms
7,908 KB |
testcase_01 | AC | 13 ms
7,776 KB |
testcase_02 | AC | 12 ms
7,824 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 13 ms
7,780 KB |
testcase_06 | AC | 14 ms
7,964 KB |
testcase_07 | AC | 14 ms
7,900 KB |
testcase_08 | AC | 12 ms
7,820 KB |
testcase_09 | AC | 13 ms
7,840 KB |
testcase_10 | AC | 12 ms
7,836 KB |
ソースコード
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')