結果

問題 No.809 かけ算
ユーザー ayaaya
提出日時 2019-08-05 12:25:08
言語 PHP
(8.3.4)
結果
TLE  
実行時間 -
コード長 358 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 18,376 KB
実行使用メモリ 23,412 KB
最終ジャッジ日時 2023-09-25 17:10:33
合計ジャッジ時間 4,163 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
23,412 KB
testcase_01 AC 16 ms
18,840 KB
testcase_02 AC 15 ms
18,868 KB
testcase_03 AC 16 ms
18,736 KB
testcase_04 AC 17 ms
18,780 KB
testcase_05 TLE -
testcase_06 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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); 
    $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;
0