結果
問題 |
No.1402 ビル街
|
ユーザー |
![]() |
提出日時 | 2021-02-19 22:54:47 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 483 bytes |
コンパイル時間 | 2,280 ms |
コンパイル使用メモリ | 193,976 KB |
最終ジャッジ日時 | 2025-01-19 01:16:09 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 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); 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; }