結果
| 問題 |
No.257 N言っちゃダメゲーム (3)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-27 00:39:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 169 bytes |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 27,624 KB |
| 平均クエリ数 | 2.77 |
| 最終ジャッジ日時 | 2024-07-04 12:25:17 |
| 合計ジャッジ時間 | 4,385 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 26 |
ソースコード
n, k = map(int, input().split())
r = (n - 1) % (k + 1)
print(r)
curr = r
i = 1
while True:
y = int(input())
if y >= n:
break
print(i * (k + 1) + r)