結果

問題 No.1402 ビル街
ユーザー 沙耶花沙耶花
提出日時 2021-02-19 22:54:47
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 483 bytes
コンパイル時間 2,058 ms
コンパイル使用メモリ 200,028 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-15 04:05:27
合計ジャッジ時間 8,451 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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);
	int cur = Inf-1;
	rep(i,N){
		if(i==N/2){
			ans.push_back(Inf);
			cur = 1;
		}
		else if(i<N/2){
			ans.push_back(Inf-1-i);
		}
		else{
			ans.push_back(5+i);
		}
	}
	ans.push_back(Inf*2);
	
	rep(i,ans.size()){
		if(i!=0)cout<<' ';
		cout<<ans[i];
	}
	cout<<endl;
	
    return 0;
}
0