結果
問題 | No.809 かけ算 |
ユーザー | aya |
提出日時 | 2019-08-05 12:16:05 |
言語 | PHP (8.3.4) |
結果 |
TLE
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 286 ms |
コンパイル使用メモリ | 18,656 KB |
実行使用メモリ | 23,392 KB |
最終ジャッジ日時 | 2023-09-25 17:10:24 |
合計ジャッジ時間 | 4,739 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
23,244 KB |
testcase_01 | AC | 16 ms
18,780 KB |
testcase_02 | AC | 15 ms
18,836 KB |
testcase_03 | AC | 519 ms
18,704 KB |
testcase_04 | TLE | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
コンパイルメッセージ
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); $x=$input/$i; array_push($array,"$i $x"); if($now-$st>0.5){ break; } } } $ans=$array[rand(0,count($array)-1)]; echo $ans;