結果
| 問題 |
No.1402 ビル街
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-19 22:26:03 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 397 bytes |
| コンパイル時間 | 1,407 ms |
| コンパイル使用メモリ | 29,184 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-16 20:30:38 |
| 合計ジャッジ時間 | 7,695 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 5 |
ソースコード
#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;
}