結果

問題 No.537 ユーザーID
ユーザー %20%20
提出日時 2017-08-18 23:39:32
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 30,464 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-22 15:55:32
合計ジャッジ時間 2,104 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 1 ms
5,248 KB
testcase_02 WA -
testcase_03 AC 1 ms
5,248 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 1 ms
5,376 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 37 ms
5,376 KB
testcase_19 AC 48 ms
5,376 KB
testcase_20 AC 42 ms
5,376 KB
testcase_21 AC 27 ms
5,376 KB
testcase_22 AC 45 ms
5,376 KB
testcase_23 AC 27 ms
5,376 KB
testcase_24 AC 8 ms
5,376 KB
testcase_25 AC 46 ms
5,376 KB
testcase_26 WA -
testcase_27 AC 38 ms
5,376 KB
testcase_28 AC 58 ms
5,376 KB
testcase_29 AC 156 ms
5,376 KB
testcase_30 AC 129 ms
5,376 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

ソースコード

diff #

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);}
0