結果
問題 |
No.809 かけ算
|
ユーザー |
|
提出日時 | 2019-08-05 12:25:08 |
言語 | PHP (843.2) |
結果 |
TLE
|
実行時間 | - |
コード長 | 358 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 32,400 KB |
実行使用メモリ | 39,340 KB |
最終ジャッジ日時 | 2024-07-18 13:29:07 |
合計ジャッジ時間 | 4,028 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 TLE * 1 -- * 1 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $input=(int)trim(fgets(STDIN)); $st = microtime(true); $ans; $array=array(); for($i=1;$i<($input/2)+1;$i++){ if($input%$i==0){ $now = microtime(true); $time=$now-$st; // echo $time."\n"; if($time>0.0005){ break; } $x=$input/$i; array_push($array,"$i $x"); } } $ans=$array[rand(0,count($array)-1)]; echo $ans;