結果

問題 No.36 素数が嫌い!
ユーザー 37zigen37zigen
提出日時 2016-05-05 16:33:55
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 32,404 KB
実行使用メモリ 39,220 KB
最終ジャッジ日時 2024-04-15 13:16:21
合計ジャッジ時間 6,913 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
31,496 KB
testcase_01 AC 45 ms
31,464 KB
testcase_02 AC 40 ms
30,924 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 TLE -
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 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n=trim(fgets(STDIN));
$f_count=0;
for($i=2;$i<=$n*$n;$i++){
	while($n%$i==0){
		$f_count++;
		$n/=$i;
		if($f_count>1)break 2;
	}
}
if($f_count>1)echo "YES".PHP_EOL;
else echo "NO".PHP_EOL;
?>
0