結果

問題 No.36 素数が嫌い!
ユーザー cielciel
提出日時 2015-07-21 22:35:13
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 157 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 23,656 KB
実行使用メモリ 5,256 KB
最終ジャッジ日時 2023-09-22 21:02:31
合計ジャッジ時間 2,587 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 82 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 WA -
testcase_11 AC 35 ms
4,376 KB
testcase_12 AC 104 ms
4,376 KB
testcase_13 AC 104 ms
4,376 KB
testcase_14 AC 65 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 0 ms
4,376 KB
testcase_17 AC 1 ms
4,380 KB
testcase_18 AC 1 ms
4,380 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 55 ms
4,380 KB
testcase_25 WA -
testcase_26 AC 63 ms
4,376 KB
testcase_27 AC 89 ms
4,376 KB
testcase_28 AC 63 ms
4,376 KB
testcase_29 AC 101 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(){
	long long N,M,i=2,r=0;
	scanf("%lld",&N);M=N;
	for(;i*i<=N;i++)for(;M%i==0;r++)M/=i;
	puts(r<=2 ? "NO" : "YES");
	return 0;
}
0