結果
問題 | No.246 質問と回答 |
ユーザー | 👑 testestest |
提出日時 | 2015-11-08 22:20:14 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 105 bytes |
コンパイル時間 | 185 ms |
コンパイル使用メモリ | 20,148 KB |
実行使用メモリ | 25,476 KB |
平均クエリ数 | 31.00 |
最終ジャッジ日時 | 2024-07-16 19:56:27 |
合計ジャッジ時間 | 3,158 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 52 ms
24,836 KB |
testcase_01 | AC | 48 ms
24,836 KB |
testcase_02 | AC | 45 ms
24,964 KB |
testcase_03 | AC | 45 ms
24,836 KB |
testcase_04 | AC | 46 ms
25,192 KB |
testcase_05 | AC | 44 ms
24,836 KB |
testcase_06 | AC | 49 ms
25,220 KB |
testcase_07 | AC | 44 ms
24,592 KB |
testcase_08 | AC | 45 ms
25,476 KB |
testcase_09 | AC | 45 ms
24,580 KB |
testcase_10 | AC | 46 ms
24,580 KB |
testcase_11 | AC | 52 ms
24,964 KB |
testcase_12 | AC | 48 ms
24,964 KB |
testcase_13 | AC | 47 ms
24,580 KB |
testcase_14 | AC | 49 ms
24,964 KB |
testcase_15 | AC | 47 ms
24,580 KB |
testcase_16 | AC | 45 ms
24,964 KB |
testcase_17 | AC | 49 ms
24,964 KB |
testcase_18 | AC | 45 ms
24,836 KB |
testcase_19 | AC | 45 ms
24,836 KB |
testcase_20 | AC | 46 ms
24,836 KB |
testcase_21 | AC | 47 ms
24,836 KB |
testcase_22 | AC | 46 ms
24,964 KB |
testcase_23 | AC | 44 ms
24,964 KB |
testcase_24 | AC | 45 ms
25,220 KB |
testcase_25 | AC | 45 ms
24,580 KB |
testcase_26 | AC | 46 ms
25,464 KB |
testcase_27 | AC | 46 ms
24,580 KB |
testcase_28 | AC | 46 ms
24,836 KB |
testcase_29 | AC | 46 ms
24,580 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | d=1<<29,l;main(i){for(;d;scanf("%d",&i),l+=d*i,d/=2)fflush(!printf("? %d\n",l+d));l=!printf("! %d\n",l);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘d’ [-Wimplicit-int] main.c:1:9: warning: type defaults to ‘int’ in declaration of ‘l’ [-Wimplicit-int] 1 | d=1<<29,l;main(i){for(;d;scanf("%d",&i),l+=d*i,d/=2)fflush(!printf("? %d\n",l+d));l=!printf("! %d\n",l);} | ^ main.c:1:11: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | d=1<<29,l;main(i){for(;d;scanf("%d",&i),l+=d*i,d/=2)fflush(!printf("? %d\n",l+d));l=!printf("! %d\n",l);} | ^~~~ main.c: In function ‘main’: main.c:1:11: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:1:26: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | d=1<<29,l;main(i){for(;d;scanf("%d",&i),l+=d*i,d/=2)fflush(!printf("? %d\n",l+d));l=!printf("! %d\n",l);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | d=1<<29,l;main(i){for(;d;scanf("%d",&i),l+=d*i,d/=2)fflush(!printf("? %d\n",l+d));l=!printf("! %d\n",l);} main.c:1:26: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | d=1<<29,l;main(i){for(;d;scanf("%d",&i),l+=d*i,d/=2)fflush(!printf("? %d\n",l+d));l=!printf("! %d\n",l);} | ^~~~~ main.c:1:26: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:53: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration] 1 | d=1<<29,l;main(i){for(;d;scanf("%d",&i),l+=d*i,d/=2)fflush(!printf("? %d\n",l+d));l=!printf("! %d\n",l);} | ^~~~~~ main.c:1:61: warning: implicit declaration of function ‘p
ソースコード
d=1<<29,l;main(i){for(;d;scanf("%d",&i),l+=d*i,d/=2)fflush(!printf("? %d\n",l+d));l=!printf("! %d\n",l);}