結果

問題 No.300 平方数
ユーザー testestesttestestest
提出日時 2015-11-15 17:02:13
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 88 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 23,060 KB
実行使用メモリ 4,480 KB
最終ジャッジ日時 2023-10-11 16:26:25
合計ジャッジ時間 1,867 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 0 ms
4,352 KB
testcase_02 WA -
testcase_03 AC 1 ms
4,352 KB
testcase_04 AC 0 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 0 ms
4,348 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 1 ms
4,352 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 11 ms
4,348 KB
testcase_14 AC 1 ms
4,348 KB
testcase_15 WA -
testcase_16 AC 5 ms
4,348 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 3 ms
4,352 KB
testcase_24 WA -
testcase_25 AC 9 ms
4,352 KB
testcase_26 AC 4 ms
4,352 KB
testcase_27 WA -
testcase_28 AC 9 ms
4,348 KB
testcase_29 AC 10 ms
4,352 KB
testcase_30 AC 10 ms
4,348 KB
testcase_31 WA -
testcase_32 AC 6 ms
4,348 KB
testcase_33 AC 4 ms
4,348 KB
testcase_34 AC 10 ms
4,352 KB
testcase_35 AC 7 ms
4,348 KB
testcase_36 AC 8 ms
4,352 KB
testcase_37 AC 7 ms
4,352 KB
testcase_38 WA -
testcase_39 AC 9 ms
4,348 KB
testcase_40 AC 7 ms
4,352 KB
testcase_41 AC 4 ms
4,352 KB
testcase_42 WA -
testcase_43 AC 3 ms
4,348 KB
testcase_44 AC 8 ms
4,352 KB
testcase_45 AC 5 ms
4,352 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:12: warning: return type defaults to ‘int’ [-Wimplicit-int]
 long a,i=1;main(){for(scanf("%ld",&a);++i*i<=a;)a%(i*i)||(a/=i--*i);a=!printf("%ld",a);}
            ^~~~
main.c: In function ‘main’:
main.c:1:23: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 long a,i=1;main(){for(scanf("%ld",&a);++i*i<=a;)a%(i*i)||(a/=i--*i);a=!printf("%ld",a);}
                       ^~~~~
main.c:1:23: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:1:23: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
 long a,i=1;main(){for(scanf("%ld",&a);++i*i<=a;)a%(i*i)||(a/=i--*i);a=!printf("%ld",a);}
                       ^~~~~
main.c:1:72: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 long a,i=1;main(){for(scanf("%ld",&a);++i*i<=a;)a%(i*i)||(a/=i--*i);a=!printf("%ld",a);}
                                                                        ^~~~~~
main.c:1:72: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:1:72: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #

long a,i=1;main(){for(scanf("%ld",&a);++i*i<=a;)a%(i*i)||(a/=i--*i);a=!printf("%ld",a);}
0