結果
| 問題 | No.257 N言っちゃダメゲーム (3) |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-12-04 15:36:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 178 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 82,816 KB |
| 実行使用メモリ | 69,208 KB |
| 平均クエリ数 | 8.70 |
| 最終ジャッジ日時 | 2024-12-04 15:36:09 |
| 合計ジャッジ時間 | 5,113 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
N, K = map(int, input().split())
x0 = N % (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