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