結果

問題 No.312 置換処理
ユーザー sam_kinosam_kino
提出日時 2016-08-11 14:09:12
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 385 ms
コンパイル使用メモリ 30,936 KB
実行使用メモリ 31,504 KB
最終ジャッジ日時 2024-04-25 01:21:07
合計ジャッジ時間 5,791 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 43 ms
30,480 KB
testcase_06 AC 45 ms
30,784 KB
testcase_07 AC 60 ms
30,736 KB
testcase_08 AC 42 ms
30,900 KB
testcase_09 AC 43 ms
30,752 KB
testcase_10 AC 45 ms
30,992 KB
testcase_11 AC 51 ms
30,988 KB
testcase_12 AC 44 ms
30,932 KB
testcase_13 AC 43 ms
30,588 KB
testcase_14 AC 43 ms
30,860 KB
testcase_15 AC 44 ms
30,948 KB
testcase_16 AC 43 ms
30,728 KB
testcase_17 AC 45 ms
30,392 KB
testcase_18 AC 47 ms
30,484 KB
testcase_19 AC 43 ms
30,624 KB
testcase_20 AC 44 ms
30,856 KB
testcase_21 AC 45 ms
30,724 KB
testcase_22 WA -
testcase_23 AC 41 ms
30,860 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 43 ms
30,480 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 43 ms
30,988 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 44 ms
30,772 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 43 ms
30,600 KB
testcase_39 AC 43 ms
30,740 KB
testcase_40 AC 42 ms
30,740 KB
testcase_41 WA -
testcase_42 AC 41 ms
30,572 KB
testcase_43 WA -
testcase_44 AC 42 ms
30,872 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?PHP
//   cd dot/PHP
//   PHP try.php

$num=trim(fgets(STDIN));
if($num%4==0){
	echo "4".PHP_EOL;
	exit;
}
//----------------------------------
for($i=3;$i<=$num/100000;$i+=2){


	if(($num%$i)==0){
		echo $i.PHP_EOL;
		exit;
	}
}
0