結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー |
|
提出日時 | 2015-09-12 20:30:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 416 bytes |
コンパイル時間 | 76 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-19 06:18:44 |
合計ジャッジ時間 | 910 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#!/usr/bin/python3 # This problem is http://yukicoder.me/problems/26 first_line = input() game_times = int(first_line) for game in range(game_times): line = input() max_num_and_given_num = list(map(int, line.split(' '))) max_num = max_num_and_given_num[0] given_num = max_num_and_given_num[1] if (max_num - 1) % (given_num + 1) == 0: print('Lose') else: print('Win')