結果

問題 No.300 平方数
ユーザー kotatsugamekotatsugame
提出日時 2017-08-11 21:50:54
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 82 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 29,056 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-20 22:23:56
合計ジャッジ時間 1,910 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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