結果

問題 No.1402 ビル街
ユーザー umezoumezo
提出日時 2021-02-19 23:44:30
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 1,940 ms
コンパイル使用メモリ 203,628 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-17 00:06:47
合計ジャッジ時間 8,594 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;

#include <bits/stdc++.h>
using namespace std;

int main(){
  int n;
  cin>>n;
  
  rep(i,n+2){
    if(i) cout<<" ";
    if(i==0 || i==n+1) cout<<2000000000;
    else if(i%2==1) cout<<2;
    else cout<<4;
  }
  cout<<endl;

  return 0;
}
0