結果
| 問題 | 
                            No.257 N言っちゃダメゲーム (3)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             YamaKasa
                         | 
                    
| 提出日時 | 2019-06-24 23:53:42 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 376 bytes | 
| コンパイル時間 | 1,590 ms | 
| コンパイル使用メモリ | 166,756 KB | 
| 実行使用メモリ | 43,552 KB | 
| 最終ジャッジ日時 | 2024-07-16 17:14:26 | 
| 合計ジャッジ時間 | 8,010 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | TLE * 1 -- * 29 | 
ソースコード
#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;
    t += K;
    cout << t << "\n";
  }
  return 0;
}
            
            
            
        
            
YamaKasa