結果
| 問題 | 
                            No.257 N言っちゃダメゲーム (3)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-03-17 23:52:12 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 160 bytes | 
| コンパイル時間 | 164 ms | 
| コンパイル使用メモリ | 82,432 KB | 
| 実行使用メモリ | 71,232 KB | 
| 平均クエリ数 | 1.90 | 
| 最終ジャッジ日時 | 2024-07-17 11:03:21 | 
| 合計ジャッジ時間 | 4,962 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 30 | 
ソースコード
N, K = map(int, input().split())
# ... 2 1 0 K ... 3 2 1
gr = N % (K + 1)
x = 0
while x < N:
    print(gr, flush = True)
    x = int(input())
    gr = K + 1 - x