結果
問題 | No.809 かけ算 |
ユーザー | aya |
提出日時 | 2019-08-05 12:06:51 |
言語 | PHP (8.3.4) |
結果 |
TLE
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 441 ms |
コンパイル使用メモリ | 18,620 KB |
実行使用メモリ | 23,408 KB |
最終ジャッジ日時 | 2023-09-25 17:09:47 |
合計ジャッジ時間 | 4,298 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
23,408 KB |
testcase_01 | AC | 16 ms
19,000 KB |
testcase_02 | AC | 16 ms
19,012 KB |
testcase_03 | TLE | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $input=(int)trim(fgets(STDIN)); $ans; $array=array(); for($i=1;$i<($input/2)+1;$i++){ if($input%$i==0){ $x=$input/$i; array_push($array,"$i $x"); } } $ans=$array[rand(0,count($array)-1)]; echo $ans;