結果
| 問題 | 
                            No.257 N言っちゃダメゲーム (3)
                             | 
                    
| コンテスト | |
| ユーザー | 
                            👑  | 
                    
| 提出日時 | 2022-09-23 09:06:35 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 257 bytes | 
| コンパイル時間 | 598 ms | 
| コンパイル使用メモリ | 66,276 KB | 
| 最終ジャッジ日時 | 2025-02-07 13:49:27 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 30 | 
ソースコード
#include <iostream>
using namespace std;
int main(){
  int n,k;cin>>n>>k;
  cout << n%(k+1) << endl;
  int nw = 1;
  int rem = n%(k+1);
  while(true){
    int x;cin>>x;
    if(x >= n){
      return 0;
    }
    cout << nw*(k+1)+rem << endl;
    nw++;
  }
}