結果
問題 | No.1402 ビル街 |
ユーザー |
![]() |
提出日時 | 2021-02-20 00:07:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 3,153 ms |
コード長 | 856 bytes |
コンパイル時間 | 715 ms |
コンパイル使用メモリ | 88,520 KB |
最終ジャッジ日時 | 2025-01-19 02:06:01 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <iostream>#include <algorithm>#include <iomanip>#include <vector>#include <queue>#include <set>#include <map>#include <cassert>#define debug_value(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << #x << "=" << x << endl;#define debug(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << x << endl;template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }using namespace std;typedef long long ll;const int l = 2000000000;int main(){ios::sync_with_stdio(false);cin.tie(0);cout << setprecision(10) << fixed;int n; cin >> n;cout << l << ' ';for(int i = 1; i <= n-1; i++){cout << l/2-i << ' ';}cout << l/2 << ' ';cout << l << endl;}