結果
問題 | No.237 作図可能性 |
ユーザー | kotatsugame |
提出日時 | 2017-09-18 05:42:58 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 28,288 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 02:18:04 |
合計ジャッジ時間 | 1,191 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,248 KB |
testcase_02 | AC | 1 ms
5,248 KB |
testcase_03 | AC | 1 ms
5,248 KB |
testcase_04 | AC | 1 ms
5,248 KB |
testcase_05 | AC | 1 ms
5,248 KB |
testcase_06 | AC | 2 ms
5,248 KB |
testcase_07 | AC | 1 ms
5,248 KB |
testcase_08 | AC | 1 ms
5,248 KB |
testcase_09 | AC | 1 ms
5,248 KB |
testcase_10 | AC | 1 ms
5,248 KB |
testcase_11 | AC | 1 ms
5,248 KB |
testcase_12 | AC | 1 ms
5,248 KB |
testcase_13 | AC | 1 ms
5,248 KB |
testcase_14 | AC | 1 ms
5,248 KB |
testcase_15 | AC | 1 ms
5,248 KB |
testcase_16 | AC | 1 ms
5,248 KB |
testcase_17 | AC | 1 ms
5,248 KB |
testcase_18 | AC | 1 ms
5,248 KB |
testcase_19 | AC | 1 ms
5,248 KB |
testcase_20 | AC | 1 ms
5,248 KB |
testcase_21 | AC | 1 ms
5,248 KB |
testcase_22 | AC | 1 ms
5,248 KB |
testcase_23 | AC | 1 ms
5,248 KB |
testcase_24 | AC | 1 ms
5,248 KB |
testcase_25 | AC | 1 ms
5,248 KB |
testcase_26 | AC | 1 ms
5,248 KB |
testcase_27 | AC | 1 ms
5,248 KB |
testcase_28 | AC | 1 ms
5,248 KB |
testcase_29 | AC | 1 ms
5,248 KB |
コンパイルメッセージ
main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int] 2 | main(){for(scanf("%d",&n);F[i];i++)for(;n/F[i];F[i]*=2)c++;printf("%d",c);} | ^~~~ main.c: In function 'main': main.c:2:12: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 2 | main(){for(scanf("%d",&n);F[i];i++)for(;n/F[i];F[i]*=2)c++;printf("%d",c);} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | long n,i,c,F[]={4,3,5,17,257,65537,15,51,771,196611,85,1285,327685,4369,1114129,16843009,255,3855,983055,13107,3342387,50529027,21845,5570645,84215045,286331153,65535,16711935,252645135,858993459,1431655765,4294967295,0}; main.c:2:12: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 2 | main(){for(scanf("%d",&n);F[i];i++)for(;n/F[i];F[i]*=2)c++;printf("%d",c);} | ^~~~~ main.c:2:12: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:2:60: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 2 | main(){for(scanf("%d",&n);F[i];i++)for(;n/F[i];F[i]*=2)c++;printf("%d",c);} | ^~~~~~ main.c:2:60: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:2:60: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:2:60: note: include '<stdio.h>' or provide a declaration of 'printf'
ソースコード
long n,i,c,F[]={4,3,5,17,257,65537,15,51,771,196611,85,1285,327685,4369,1114129,16843009,255,3855,983055,13107,3342387,50529027,21845,5570645,84215045,286331153,65535,16711935,252645135,858993459,1431655765,4294967295,0}; main(){for(scanf("%d",&n);F[i];i++)for(;n/F[i];F[i]*=2)c++;printf("%d",c);}