結果

問題 No.1402 ビル街
ユーザー butsurizukibutsurizuki
提出日時 2021-02-19 22:26:03
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 397 bytes
コンパイル時間 642 ms
コンパイル使用メモリ 29,044 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-10-15 02:59:44
合計ジャッジ時間 7,257 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<stdio.h>
#define bas 1000000000

int res[2048]={0};

void rep(int st,int fi,int hei){
  if(st>fi){return;}
  int te=(st+fi)/2;
  res[te]=hei;
  rep(st,te-1,hei-1);
  rep(te+1,fi,hei-1);
}

int main(){
  int n;
  scanf("%d",&n);
  res[0]=bas*2;
  res[n+1]=bas*2;
  rep(1,n,bas-10);
  for(int i=0;i<=n+1;i++){
    if(i){printf(" ");}
    printf("%d",res[i]);
  }printf("\n");
  return 0;
}
0