結果

問題 No.300 平方数
ユーザー testestesttestestest
提出日時 2015-11-23 23:00:15
言語 C90
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 87 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 22,920 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-11 18:25:38
合計ジャッジ時間 5,458 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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