結果
問題 |
No.257 N言っちゃダメゲーム (3)
|
ユーザー |
|
提出日時 | 2022-01-20 07:09:35 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 274 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 82,440 KB |
実行使用メモリ | 71,268 KB |
平均クエリ数 | 1.97 |
最終ジャッジ日時 | 2024-11-23 14:19:36 |
合計ジャッジ時間 | 5,070 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 27 |
ソースコード
n, k = map(int, input().split()) N = n if (n - 1) % (k + 1) == 0: print(0, flush = True) a = int(input()) if a >= N: exit() n -= a while 1: x = (n - 1) % (k + 1) print(x, flush = True) n -= x a = int(input()) if a >= N: exit() n -= a