結果

問題 No.1402 ビル街
ユーザー 259_Momone259_Momone
提出日時 2021-02-19 21:51:21
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 2,097 ms
コンパイル使用メモリ 196,904 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-15 00:59:02
合計ジャッジ時間 8,267 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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