結果
問題 | No.36 素数が嫌い! |
ユーザー | tamakoron |
提出日時 | 2016-11-23 23:14:32 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 99 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-05-05 12:51:06 |
合計ジャッジ時間 | 12,487 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | i,c;long n;main(){for(i=scanf("%ld",&n);i++<n;)n%i||(++c,n/=i--);printf(2<c+!!--n?"YES\n":"NO\n");} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int] 1 | i,c;long n;main(){for(i=scanf("%ld",&n);i++<n;)n%i||(++c,n/=i--);printf(2<c+!!--n?"YES\n":"NO\n");} | ^ main.c:1:12: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | i,c;long n;main(){for(i=scanf("%ld",&n);i++<n;)n%i||(++c,n/=i--);printf(2<c+!!--n?"YES\n":"NO\n");} | ^~~~ main.c: In function ‘main’: main.c:1:25: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | i,c;long n;main(){for(i=scanf("%ld",&n);i++<n;)n%i||(++c,n/=i--);printf(2<c+!!--n?"YES\n":"NO\n");} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | i,c;long n;main(){for(i=scanf("%ld",&n);i++<n;)n%i||(++c,n/=i--);printf(2<c+!!--n?"YES\n":"NO\n");} main.c:1:25: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | i,c;long n;main(){for(i=scanf("%ld",&n);i++<n;)n%i||(++c,n/=i--);printf(2<c+!!--n?"YES\n":"NO\n");} | ^~~~~ main.c:1:25: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:66: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | i,c;long n;main(){for(i=scanf("%ld",&n);i++<n;)n%i||(++c,n/=i--);printf(2<c+!!--n?"YES\n":"NO\n");} | ^~~~~~ 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��
ソースコード
i,c;long n;main(){for(i=scanf("%ld",&n);i++<n;)n%i||(++c,n/=i--);printf(2<c+!!--n?"YES\n":"NO\n");}