結果
| 問題 | No.257 N言っちゃダメゲーム (3) |
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-21 23:01:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 295 bytes |
| 記録 | |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 28,000 KB |
| 平均クエリ数 | 2.90 |
| 最終ジャッジ日時 | 2024-07-16 17:11:48 |
| 合計ジャッジ時間 | 4,402 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 30 |
ソースコード
import sys n, k = [ int(v) for v in input().split() ] border = ( n - 1 ) % ( k + 1 ) if border == 0: output = 0 else: output = border print(output, flush=True) while True: m = int(input()) if m > n: sys.exit() else: x = m % ( k + 1 ) y = m + k + 1 - x print(border, flush=True)
Konton7