結果
問題 | No.677 10^Nの約数 |
ユーザー | %20 |
提出日時 | 2017-09-15 21:31:50 |
言語 | C (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 215 bytes |
コンパイル時間 | 1,303 ms |
コンパイル使用メモリ | 28,800 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-11-07 23:14:21 |
合計ジャッジ時間 | 5,590 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
10,496 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 | 1 ms
5,248 KB |
testcase_07 | AC | 1 ms
5,248 KB |
testcase_08 | AC | 1 ms
5,248 KB |
testcase_09 | AC | 2 ms
5,248 KB |
testcase_10 | AC | 2 ms
5,248 KB |
testcase_11 | AC | 4 ms
5,248 KB |
testcase_12 | AC | 11 ms
5,248 KB |
testcase_13 | AC | 34 ms
5,248 KB |
testcase_14 | AC | 101 ms
5,248 KB |
testcase_15 | AC | 318 ms
5,248 KB |
testcase_16 | AC | 1,039 ms
5,248 KB |
testcase_17 | TLE | - |
testcase_18 | -- | - |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int] 1 | main(){ | ^~~~ main.c: In function 'main': main.c:3:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | scanf("%lld",&N); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(){ main.c:3:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 3 | scanf("%lld",&N); | ^~~~~ main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:4:11: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 4 | M=pow(10,N); | ^~~ main.c:1:1: note: include '<math.h>' or provide a declaration of 'pow' +++ |+#include <math.h> 1 | main(){ main.c:4:11: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 4 | M=pow(10,N); | ^~~ main.c:4:11: note: include '<math.h>' or provide a declaration of 'pow' main.c:7:22: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 7 | M%i||printf("%lld\n",a[j++]=i); | ^~~~~~ main.c:7:22: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:7:22: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:7:22: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 10 | printf("%lld\n",i); | ^~~~~~ main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:13:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 13 |
ソースコード
main(){ long long N,M,a[999],i,j; scanf("%lld",&N); M=pow(10,N); j=0; for(i=1;i*i<M;++i){ M%i||printf("%lld\n",a[j++]=i); } if(i*i==M){ printf("%lld\n",i); } for(;j;){ printf("%lld\n",M/a[--j]); } }