結果
問題 | No.750 Frac #1 |
ユーザー |
|
提出日時 | 2019-08-06 12:53:30 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 43 ms / 1,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 137 ms |
コンパイル使用メモリ | 31,260 KB |
実行使用メモリ | 31,532 KB |
最終ジャッジ日時 | 2024-07-18 13:53:45 |
合計ジャッジ時間 | 2,443 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $num=(int)trim(fgets(STDIN)); $inputData=array(); $calData=array(); for($i=0;$i<$num;$i++){ $input=trim(fgets(STDIN)); array_push($inputData,$input); $inputValue=explode(" ",$input); array_push($calData,(float)$inputValue[0]/(float)$inputValue[1]); } arsort($calData); foreach($calData as $key=>$value){ echo $inputData[$key]."\n"; }