結果
問題 | No.253 ロウソクの長さ |
ユーザー | testestest |
提出日時 | 2015-11-07 21:48:23 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 142 bytes |
コンパイル時間 | 191 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 25,604 KB |
平均クエリ数 | 24.56 |
最終ジャッジ日時 | 2024-07-16 06:32:46 |
合計ジャッジ時間 | 2,983 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 24 ms
24,940 KB |
testcase_01 | AC | 22 ms
24,964 KB |
testcase_02 | AC | 21 ms
25,220 KB |
testcase_03 | AC | 20 ms
24,580 KB |
testcase_04 | AC | 20 ms
24,964 KB |
testcase_05 | AC | 20 ms
24,964 KB |
testcase_06 | AC | 20 ms
24,964 KB |
testcase_07 | AC | 21 ms
25,220 KB |
testcase_08 | AC | 21 ms
25,220 KB |
testcase_09 | AC | 21 ms
24,580 KB |
testcase_10 | AC | 22 ms
25,604 KB |
testcase_11 | AC | 22 ms
24,964 KB |
testcase_12 | AC | 21 ms
24,964 KB |
testcase_13 | AC | 20 ms
24,580 KB |
testcase_14 | AC | 20 ms
25,220 KB |
testcase_15 | AC | 22 ms
25,220 KB |
testcase_16 | AC | 20 ms
25,220 KB |
testcase_17 | AC | 22 ms
24,964 KB |
testcase_18 | AC | 21 ms
24,836 KB |
testcase_19 | AC | 21 ms
24,820 KB |
testcase_20 | AC | 23 ms
24,836 KB |
testcase_21 | AC | 23 ms
25,604 KB |
testcase_22 | AC | 24 ms
25,220 KB |
testcase_23 | AC | 22 ms
24,964 KB |
testcase_24 | AC | 21 ms
24,964 KB |
testcase_25 | AC | 21 ms
24,964 KB |
testcase_26 | AC | 21 ms
24,836 KB |
testcase_27 | AC | 23 ms
25,220 KB |
testcase_28 | AC | 22 ms
24,836 KB |
testcase_29 | AC | 22 ms
25,220 KB |
testcase_30 | AC | 21 ms
24,580 KB |
testcase_31 | AC | 20 ms
25,220 KB |
testcase_32 | AC | 20 ms
24,964 KB |
testcase_33 | AC | 20 ms
25,220 KB |
testcase_34 | WA | - |
testcase_35 | AC | 21 ms
24,568 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | i,u=1e9,l=10,m=40;main(n){for(puts("? 40");fflush(0),scanf("%d",&n),n;printf("? %d\n",m-i))~n?l=m:(u=m),i++,m=u+l+1>>1;m=!printf("! %d\n",m);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘u’ [-Wimplicit-int] 1 | i,u=1e9,l=10,m=40;main(n){for(puts("? 40");fflush(0),scanf("%d",&n),n;printf("? %d\n",m-i))~n?l=m:(u=m),i++,m=u+l+1>>1;m=!printf("! %d\n",m);} | ^ main.c:1:9: warning: type defaults to ‘int’ in declaration of ‘l’ [-Wimplicit-int] 1 | i,u=1e9,l=10,m=40;main(n){for(puts("? 40");fflush(0),scanf("%d",&n),n;printf("? %d\n",m-i))~n?l=m:(u=m),i++,m=u+l+1>>1;m=!printf("! %d\n",m);} | ^ main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] 1 | i,u=1e9,l=10,m=40;main(n){for(puts("? 40");fflush(0),scanf("%d",&n),n;printf("? %d\n",m-i))~n?l=m:(u=m),i++,m=u+l+1>>1;m=!printf("! %d\n",m);} | ^ main.c:1:19: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | i,u=1e9,l=10,m=40;main(n){for(puts("? 40");fflush(0),scanf("%d",&n),n;printf("? %d\n",m-i))~n?l=m:(u=m),i++,m=u+l+1>>1;m=!printf("! %d\n",m);} | ^~~~ main.c: In function ‘main’: main.c:1:19: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int] main.c:1:31: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] 1 | i,u=1e9,l=10,m=40;main(n){for(puts("? 40");fflush(0),scanf("%d",&n),n;printf("? %d\n",m-i))~n?l=m:(u=m),i++,m=u+l+1>>1;m=!printf("! %d\n",m);} | ^~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’ +++ |+#include <stdio.h> 1 | i,u=1e9,l=10,m=40;main(n){for(puts("? 40");fflush(0),scanf("%d",&n),n;printf("? %d\n",m-i))~n?l=m:(u=m),i++,m=u+l+1>>1;m=!printf
ソースコード
i,u=1e9,l=10,m=40;main(n){for(puts("? 40");fflush(0),scanf("%d",&n),n;printf("? %d\n",m-i))~n?l=m:(u=m),i++,m=u+l+1>>1;m=!printf("! %d\n",m);}