結果
問題 | No.257 N言っちゃダメゲーム (3) |
ユーザー |
![]() |
提出日時 | 2023-01-14 15:13:58 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 101 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 346 ms |
コンパイル使用メモリ | 82,332 KB |
実行使用メモリ | 70,152 KB |
平均クエリ数 | 3.70 |
最終ジャッジ日時 | 2024-07-17 03:14:58 |
合計ジャッジ時間 | 4,883 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
import sys N, K = map(int, input().split()) if K >= N - 1: print(N - 1) sys.stdout.flush() exit() now = (N - 1) % (K + 1) print(now) sys.stdout.flush() while True: v = int(input()) if v >= N: exit() nex = K + 1 - (v - now) % (K + 1) now = v + nex print(now) sys.stdout.flush()