結果

問題 No.809 かけ算
ユーザー aya
提出日時 2019-08-05 12:16:05
言語 PHP
(843.2)
結果
TLE  
実行時間 -
コード長 312 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 32,400 KB
実行使用メモリ 36,796 KB
最終ジャッジ日時 2024-07-18 13:29:01
合計ジャッジ時間 4,670 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 TLE * 1 -- * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?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);
    $x=$input/$i;
    array_push($array,"$i $x");   
     if($now-$st>0.5){
      break;
    }
  }
}
$ans=$array[rand(0,count($array)-1)];
echo $ans;
0