結果
| 問題 | 
                            No.257 N言っちゃダメゲーム (3)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             YamaKasa
                         | 
                    
| 提出日時 | 2019-06-24 23:59:22 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 382 bytes | 
| コンパイル時間 | 1,708 ms | 
| コンパイル使用メモリ | 165,164 KB | 
| 実行使用メモリ | 25,604 KB | 
| 平均クエリ数 | 1.90 | 
| 最終ジャッジ日時 | 2024-07-16 17:14:32 | 
| 合計ジャッジ時間 | 5,112 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 3 WA * 27 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
  // cin.tie(0);
  // ios::sync_with_stdio(false);
  ll N, K;
  cin >> N >> K;
  ll t = (N - 1) % (K + 1);
  if (t == 0) {
    cout << "0\n";
  } else {
    cout << t << "\n";
  }
  while (t < N) {
    ll a;
    cin >> a;
    if (a >= N) break;
    cout << t << "\n";
    t += K + 1;
  }
  return 0;
}
            
            
            
        
            
YamaKasa