結果

問題 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  
実行時間 348 ms / 1,000 ms
コード長 273 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 8,093 ms
コンパイル使用メモリ 274,140 KB
実行使用メモリ 59,180 KB
最終ジャッジ日時 2026-03-09 16:29:54
合計ジャッジ時間 17,862 ms
ジャッジサーバーID
(参考情報)
judge2_0 / 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