結果
問題 | No.537 ユーザーID |
ユーザー | %20 |
提出日時 | 2017-08-18 23:39:32 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 160 bytes |
コンパイル時間 | 172 ms |
コンパイル使用メモリ | 29,696 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-14 15:02:05 |
合計ジャッジ時間 | 2,140 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,816 KB |
testcase_01 | AC | 1 ms
6,816 KB |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
6,820 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 1 ms
6,816 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 39 ms
6,816 KB |
testcase_19 | AC | 52 ms
6,816 KB |
testcase_20 | AC | 45 ms
6,820 KB |
testcase_21 | AC | 30 ms
6,820 KB |
testcase_22 | AC | 50 ms
6,820 KB |
testcase_23 | AC | 29 ms
6,816 KB |
testcase_24 | AC | 9 ms
6,816 KB |
testcase_25 | AC | 50 ms
6,820 KB |
testcase_26 | WA | - |
testcase_27 | AC | 40 ms
6,820 KB |
testcase_28 | AC | 64 ms
6,820 KB |
testcase_29 | AC | 170 ms
6,816 KB |
testcase_30 | AC | 142 ms
6,816 KB |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
コンパイルメッセージ
main.c:1:24: warning: return type defaults to 'int' [-Wimplicit-int] 1 | long n,s[9999],i,j,k,t;main(x){for(scanf("%ld",&n);i*i++<n;j=k)for(t=n/i*pow(10,t=log10(i)+1)+i;n%i?0:(j?t-s[--j]:!(s[k++]=t))||(i=n/i,x++%2););printf("%d",k);} | ^~~~ main.c: In function 'main': main.c:1:24: warning: type of 'x' defaults to 'int' [-Wimplicit-int] main.c:1:36: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | long n,s[9999],i,j,k,t;main(x){for(scanf("%ld",&n);i*i++<n;j=k)for(t=n/i*pow(10,t=log10(i)+1)+i;n%i?0:(j?t-s[--j]:!(s[k++]=t))||(i=n/i,x++%2););printf("%d",k);} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | long n,s[9999],i,j,k,t;main(x){for(scanf("%ld",&n);i*i++<n;j=k)for(t=n/i*pow(10,t=log10(i)+1)+i;n%i?0:(j?t-s[--j]:!(s[k++]=t))||(i=n/i,x++%2););printf("%d",k);} main.c:1:36: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | long n,s[9999],i,j,k,t;main(x){for(scanf("%ld",&n);i*i++<n;j=k)for(t=n/i*pow(10,t=log10(i)+1)+i;n%i?0:(j?t-s[--j]:!(s[k++]=t))||(i=n/i,x++%2););printf("%d",k);} | ^~~~~ main.c:1:36: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:74: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 1 | long n,s[9999],i,j,k,t;main(x){for(scanf("%ld",&n);i*i++<n;j=k)for(t=n/i*pow(10,t=log10(i)+1)+i;n%i?0:(j?t-s[--j]:!(s[k++]=t))||(i=n/i,x++%2););printf("%d",k);} | ^~~ main.c:1:1: note: include '<math.h>' or provide a declaration of 'pow' +++ |+#include <math.h> 1 | long n,s[9999],i,j,k,t;main(x){for(scanf("%ld",&n);i*i++<n;j=k)for(t=n/i*pow(10,t=log10(i)+1)+i;n%i?0:(j?t-s[--j]:!(s[k++]=t))||(i=n/i,x++%2););printf("%d",k);} main.c:1:74: warni
ソースコード
long n,s[9999],i,j,k,t;main(x){for(scanf("%ld",&n);i*i++<n;j=k)for(t=n/i*pow(10,t=log10(i)+1)+i;n%i?0:(j?t-s[--j]:!(s[k++]=t))||(i=n/i,x++%2););printf("%d",k);}