結果

問題 No.1402 ビル街
ユーザー 沙耶花沙耶花
提出日時 2021-02-19 22:58:36
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 3,153 ms
コード長 385 bytes
コンパイル時間 1,946 ms
コンパイル使用メモリ 200,552 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-15 04:14:04
合計ジャッジ時間 8,287 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 1 ms
4,352 KB
testcase_03 AC 2 ms
4,352 KB
testcase_04 AC 2 ms
4,352 KB
testcase_05 AC 1 ms
4,352 KB
testcase_06 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0