結果
問題 | No.300 平方数 |
ユーザー | testestest |
提出日時 | 2015-11-23 23:00:15 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 87 bytes |
コンパイル時間 | 139 ms |
コンパイル使用メモリ | 19,712 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 17:19:44 |
合計ジャッジ時間 | 4,702 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,376 KB |
testcase_02 | AC | 1 ms
5,376 KB |
testcase_03 | AC | 0 ms
5,376 KB |
testcase_04 | AC | 0 ms
5,376 KB |
testcase_05 | AC | 1 ms
5,376 KB |
testcase_06 | AC | 1 ms
5,376 KB |
testcase_07 | AC | 1 ms
5,376 KB |
testcase_08 | AC | 1 ms
5,376 KB |
testcase_09 | AC | 1 ms
5,376 KB |
testcase_10 | AC | 0 ms
5,376 KB |
testcase_11 | AC | 0 ms
5,376 KB |
testcase_12 | AC | 1 ms
5,376 KB |
testcase_13 | RE | - |
testcase_14 | AC | 0 ms
5,376 KB |
testcase_15 | AC | 1 ms
5,376 KB |
testcase_16 | RE | - |
testcase_17 | AC | 1 ms
5,376 KB |
testcase_18 | AC | 1 ms
5,376 KB |
testcase_19 | AC | 1 ms
5,376 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] 1 | 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] 1 | 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:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | 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’ [-Wbuiltin-declaration-mismatch] 1 | 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: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:71: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | 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: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:71: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] main.c:1:71: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
long a;main(i){for(scanf("%ld",&a);++i<=a/i;)a%(i*i)||(a/=i*i,i--);a=!printf("%ld",a);}