結果
| 問題 | No.67 よくある棒を切る問題 (1) | 
| コンテスト | |
| ユーザー | 👑  testestest | 
| 提出日時 | 2016-02-26 20:34:50 | 
| 言語 | C90 (gcc 12.3.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 171 bytes | 
| コンパイル時間 | 324 ms | 
| コンパイル使用メモリ | 37,376 KB | 
| 実行使用メモリ | 12,064 KB | 
| 最終ジャッジ日時 | 2025-03-03 10:29:40 | 
| 合計ジャッジ時間 | 12,963 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | TLE * 1 -- * 29 | 
コンパイルメッセージ
main.c: In function 'main':
main.c:1:58: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | double u=1e9,d=1e-9,m;long k,s,a[200010],i;main(t){for(;~scanf("%ld",&s);k=s)a[-t--]=k;for(;t++<99;s>k?d=m:(u=m))for(s=i=1;a[i];s+=a[i++]/m)m=(u+d)/2;i=!printf("%.9f",u);}
      |                                                          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | double u=1e9,d=1e-9,m;long k,s,a[200010],i;main(t){for(;~scanf("%ld",&s);k=s)a[-t--]=k;for(;t++<99;s>k?d=m:(u=m))for(s=i=1;a[i];s+=a[i++]/m)m=(u+d)/2;i=!printf("%.9f",u);}
main.c:1:154: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    1 | double u=1e9,d=1e-9,m;long k,s,a[200010],i;main(t){for(;~scanf("%ld",&s);k=s)a[-t--]=k;for(;t++<99;s>k?d=m:(u=m))for(s=i=1;a[i];s+=a[i++]/m)m=(u+d)/2;i=!printf("%.9f",u);}
      |                                                                                                                                                          ^~~~~~
main.c:1:154: note: include '<stdio.h>' or provide a declaration of 'printf'
            
            ソースコード
double u=1e9,d=1e-9,m;long k,s,a[200010],i;main(t){for(;~scanf("%ld",&s);k=s)a[-t--]=k;for(;t++<99;s>k?d=m:(u=m))for(s=i=1;a[i];s+=a[i++]/m)m=(u+d)/2;i=!printf("%.9f",u);}
            
            
            
        