結果
| 問題 |
No.257 N言っちゃダメゲーム (3)
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-12-04 15:39:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 96 ms / 2,000 ms |
| コード長 | 182 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 82,280 KB |
| 実行使用メモリ | 68,704 KB |
| 平均クエリ数 | 3.70 |
| 最終ジャッジ日時 | 2024-12-04 15:40:03 |
| 合計ジャッジ時間 | 5,108 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
N, K = map(int, input().split())
x0 = (N-1) % (K + 1)
x = x0
print(x)
while 1:
y = int(input())
if y >= N:
exit()
x = y + K + 1 - (y - x0) % (K + 1)
print(x)
ntuda