結果

問題 No.750 Frac #1
コンテスト
ユーザー neko_the_shadow
提出日時 2018-12-02 16:55:21
言語 Scala(Beta)
(3.8.2)
コンパイル:
scalac _filename_
実行:
/usr/bin/scala_run _class_
結果
AC  
実行時間 306 ms / 1,000 ms
+ 451µs
コード長 273 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 7,347 ms
コンパイル使用メモリ 269,592 KB
実行使用メモリ 52,568 KB
最終ジャッジ日時 2026-07-28 14:50:41
合計ジャッジ時間 18,940 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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