結果

問題 No.1402 ビル街
ユーザー 259_Momone
提出日時 2021-02-19 21:51:21
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 1,785 ms
コンパイル使用メモリ 190,936 KB
最終ジャッジ日時 2025-01-18 23:47:00
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

int main(){
    using namespace std;
    unsigned long N;
    cin >> N;
    const auto t{(N + 1) / 2};
    cout << "2000000000 ";
    for(unsigned long i{1}; i <= N; ++i)if(i == t)cout << "1000000000 ";
    else cout << max(t, i) - min(t, i) << " ";
    cout << "2000000000";
    return 0;
}
0