結果
| 問題 | 
                            No.257 N言っちゃダメゲーム (3)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-12-23 21:03:33 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                            (最新)
                                AC
                                 
                             
                            (最初)
                            
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 212 bytes | 
| コンパイル時間 | 88 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 27,744 KB | 
| 平均クエリ数 | 3.73 | 
| 最終ジャッジ日時 | 2024-07-16 11:55:45 | 
| 合計ジャッジ時間 | 4,251 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 26 WA * 4 | 
ソースコード
N,K=map(int,input().split())
x=0
while x<N:
    if N==1:
        print(0,flush=True)
    else:
        d = (N-1-x)%(K+1)
        if d==0:d=K
        if d<0:d+=K
        print(x+d, flush=True)
    x = int(input())