結果
問題 | No.25 有限小数 |
ユーザー | 👑 testestest |
提出日時 | 2016-04-05 23:10:11 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 154 bytes |
コンパイル時間 | 767 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 02:06:41 |
合計ジャッジ時間 | 1,485 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,820 KB |
testcase_01 | AC | 0 ms
6,820 KB |
testcase_02 | AC | 0 ms
6,820 KB |
testcase_03 | AC | 1 ms
6,820 KB |
testcase_04 | AC | 1 ms
6,816 KB |
testcase_05 | AC | 1 ms
6,816 KB |
testcase_06 | AC | 1 ms
6,816 KB |
testcase_07 | AC | 0 ms
6,820 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 1 ms
6,820 KB |
testcase_12 | AC | 1 ms
6,820 KB |
testcase_13 | AC | 0 ms
6,820 KB |
testcase_14 | AC | 0 ms
6,816 KB |
testcase_15 | AC | 1 ms
6,820 KB |
testcase_16 | AC | 1 ms
6,820 KB |
testcase_17 | WA | - |
testcase_18 | AC | 1 ms
6,816 KB |
testcase_19 | AC | 1 ms
6,820 KB |
testcase_20 | AC | 1 ms
6,816 KB |
testcase_21 | AC | 0 ms
6,816 KB |
testcase_22 | AC | 0 ms
6,820 KB |
testcase_23 | AC | 1 ms
6,820 KB |
testcase_24 | AC | 0 ms
6,816 KB |
testcase_25 | AC | 0 ms
6,816 KB |
testcase_26 | AC | 1 ms
6,820 KB |
testcase_27 | AC | 1 ms
6,816 KB |
testcase_28 | AC | 1 ms
6,820 KB |
testcase_29 | AC | 0 ms
6,816 KB |
testcase_30 | AC | 0 ms
6,816 KB |
コンパイルメッセージ
main.c:1:14: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | long a,b,s,t;main(){for(scanf("%ld",&b);~b&1?b/=2,++t:b%5<1?b/=5,++s:0;);a?a=!printf("%d",a%b?-1:s<t?5:a/b*(s-t?1<<(s-t)%4+4:1)%10):main(a=b,s^=t^=s^=t);} | ^~~~ main.c: In function ‘main’: main.c:1:25: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | long a,b,s,t;main(){for(scanf("%ld",&b);~b&1?b/=2,++t:b%5<1?b/=5,++s:0;);a?a=!printf("%d",a%b?-1:s<t?5:a/b*(s-t?1<<(s-t)%4+4:1)%10):main(a=b,s^=t^=s^=t);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | long a,b,s,t;main(){for(scanf("%ld",&b);~b&1?b/=2,++t:b%5<1?b/=5,++s:0;);a?a=!printf("%d",a%b?-1:s<t?5:a/b*(s-t?1<<(s-t)%4+4:1)%10):main(a=b,s^=t^=s^=t);} main.c:1:25: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | long a,b,s,t;main(){for(scanf("%ld",&b);~b&1?b/=2,++t:b%5<1?b/=5,++s:0;);a?a=!printf("%d",a%b?-1:s<t?5:a/b*(s-t?1<<(s-t)%4+4:1)%10):main(a=b,s^=t^=s^=t);} | ^~~~~ main.c:1:25: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:79: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | long a,b,s,t;main(){for(scanf("%ld",&b);~b&1?b/=2,++t:b%5<1?b/=5,++s:0;);a?a=!printf("%d",a%b?-1:s<t?5:a/b*(s-t?1<<(s-t)%4+4:1)%10):main(a=b,s^=t^=s^=t);} | ^~~~~~ main.c:1:79: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:79: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] main.c:1:79: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:88: warning: format ‘%d’ expects argument of type ‘int’, but
ソースコード
long a,b,s,t;main(){for(scanf("%ld",&b);~b&1?b/=2,++t:b%5<1?b/=5,++s:0;);a?a=!printf("%d",a%b?-1:s<t?5:a/b*(s-t?1<<(s-t)%4+4:1)%10):main(a=b,s^=t^=s^=t);}