結果
| 問題 | 
                            No.257 N言っちゃダメゲーム (3)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Konton7
                         | 
                    
| 提出日時 | 2019-05-21 23:11:35 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 304 bytes | 
| コンパイル時間 | 432 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 27,872 KB | 
| 平均クエリ数 | 7.93 | 
| 最終ジャッジ日時 | 2024-07-16 17:11:58 | 
| 合計ジャッジ時間 | 4,293 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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(str(output)) sys.stdout.flush() while True: m = int(input()) if m > n: pass else: x = m % ( k + 1 ) y = m + k + 1 - x print(y) sys.stdout.flush()
            
Konton7