結果
| 問題 | No.1402 ビル街 | 
| コンテスト | |
| ユーザー |  沙耶花 | 
| 提出日時 | 2021-02-19 22:58:36 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 3,153 ms | 
| コード長 | 385 bytes | 
| コンパイル時間 | 2,004 ms | 
| コンパイル使用メモリ | 195,648 KB | 
| 最終ジャッジ日時 | 2025-01-19 01:19:29 | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 5 | 
ソースコード
#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000000
int main(){
	
	int N;
	cin>>N;
	
	vector<int> ans(1,Inf*2);
	rep(i,N){
		if(i==0)ans.push_back(Inf);
		else ans.push_back(2+i);
	}
	ans.push_back(Inf*2);
	
	rep(i,ans.size()){
		if(i!=0)cout<<' ';
		cout<<ans[i];
	}
	cout<<endl;
	
    return 0;
}
            
            
            
        