結果
| 問題 | No.257 N言っちゃダメゲーム (3) |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-12-04 15:36:03 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 178 bytes |
| 記録 | |
| コンパイル時間 | 248 ms |
| コンパイル使用メモリ | 85,336 KB |
| 実行使用メモリ | 73,796 KB |
| 平均クエリ数 | 8.70 |
| 最終ジャッジ日時 | 2026-05-24 16:20:14 |
| 合計ジャッジ時間 | 4,337 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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