結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
|
提出日時 | 2025-07-10 21:07:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 54 ms / 5,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 592 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 10,368 KB |
最終ジャッジ日時 | 2025-07-10 21:08:01 |
合計ジャッジ時間 | 1,777 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
def main(): P = int(input()) pair = [] for i in range(P): a, b = map(int, input().split()) pair.append((a,b)) for i in range(P): N = pair[i][0] K = pair[i][1] count = N - 1 while count >= K: count -= K + 1 if count == 0: print("Lose") else: print("Win") if __name__=='__main__': main()