結果

問題 No.750 Frac #1
ユーザー kou_kkk
提出日時 2023-10-02 19:55:49
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 206 bytes
コンパイル時間 4,064 ms
コンパイル使用メモリ 66,048 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-26 13:53:46
合計ジャッジ時間 4,973 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

import algorithm, sequtils, strutils

let
  n = parseInt readLine stdin
  xs = n.newSeqWith stdin.readLine.split.map parseInt
  sorted = xs.sortedByIt -it[0] / it[1]

for x in sorted:
  echo x[0], " ", x[1]
0