結果

問題 No.750 Frac #1
ユーザー neko_the_shadowneko_the_shadow
提出日時 2018-12-02 16:55:21
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 982 ms / 1,000 ms
コード長 273 bytes
コンパイル時間 12,688 ms
コンパイル使用メモリ 249,700 KB
実行使用メモリ 62,724 KB
最終ジャッジ日時 2023-09-13 20:55:12
合計ジャッジ時間 46,003 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 954 ms
62,692 KB
testcase_01 AC 955 ms
62,652 KB
testcase_02 AC 956 ms
62,360 KB
testcase_03 AC 935 ms
62,596 KB
testcase_04 AC 916 ms
62,572 KB
testcase_05 AC 966 ms
62,512 KB
testcase_06 AC 945 ms
62,680 KB
testcase_07 AC 971 ms
62,412 KB
testcase_08 AC 930 ms
62,024 KB
testcase_09 AC 943 ms
62,500 KB
testcase_10 AC 970 ms
62,568 KB
testcase_11 AC 940 ms
62,412 KB
testcase_12 AC 950 ms
62,392 KB
testcase_13 AC 952 ms
62,424 KB
testcase_14 AC 927 ms
62,724 KB
testcase_15 AC 931 ms
62,140 KB
testcase_16 AC 951 ms
62,568 KB
testcase_17 AC 961 ms
62,648 KB
testcase_18 AC 956 ms
62,340 KB
testcase_19 AC 951 ms
62,492 KB
testcase_20 AC 927 ms
62,084 KB
testcase_21 AC 951 ms
62,576 KB
testcase_22 AC 976 ms
62,544 KB
testcase_23 AC 976 ms
62,724 KB
testcase_24 AC 958 ms
62,432 KB
testcase_25 AC 930 ms
62,212 KB
testcase_26 AC 982 ms
62,296 KB
testcase_27 AC 955 ms
62,444 KB
testcase_28 AC 923 ms
62,116 KB
testcase_29 AC 957 ms
62,532 KB
testcase_30 AC 967 ms
62,520 KB
testcase_31 AC 981 ms
62,512 KB
testcase_32 AC 960 ms
62,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

object Q750 {
  def main(args: Array[String]) = {
    val n = io.StdIn.readLine().toInt
    Range(0, n).map(_ => io.StdIn.readLine()).sortBy(line => {
      val tokens = line.split(' ').map(_.toDouble).toSeq
      tokens(0) / tokens(1)
    }).reverse.foreach(println)
  }
}
0