結果

問題 No.750 Frac #1
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-01-30 22:37:36
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 182 bytes
コンパイル時間 238 ms
コンパイル使用メモリ 11,564 KB
実行使用メモリ 15,364 KB
最終ジャッジ日時 2023-10-14 08:52:58
合計ジャッジ時間 4,934 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,276 KB
testcase_01 AC 86 ms
15,044 KB
testcase_02 WA -
testcase_03 AC 83 ms
15,136 KB
testcase_04 AC 83 ms
15,112 KB
testcase_05 AC 81 ms
15,296 KB
testcase_06 WA -
testcase_07 AC 83 ms
15,268 KB
testcase_08 AC 82 ms
15,220 KB
testcase_09 AC 84 ms
15,132 KB
testcase_10 AC 84 ms
15,080 KB
testcase_11 WA -
testcase_12 AC 83 ms
15,072 KB
testcase_13 AC 84 ms
15,192 KB
testcase_14 AC 83 ms
15,312 KB
testcase_15 AC 84 ms
14,984 KB
testcase_16 AC 83 ms
15,112 KB
testcase_17 AC 83 ms
15,076 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 83 ms
15,188 KB
testcase_21 AC 85 ms
15,264 KB
testcase_22 AC 85 ms
15,228 KB
testcase_23 AC 83 ms
15,228 KB
testcase_24 WA -
testcase_25 AC 85 ms
15,132 KB
testcase_26 WA -
testcase_27 AC 84 ms
15,116 KB
testcase_28 AC 83 ms
15,244 KB
testcase_29 AC 84 ms
15,104 KB
testcase_30 AC 83 ms
15,072 KB
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
a = []
n.times do
  b, c = gets.chomp.split.map(&:to_i)
  a << Rational(b, c)
end
a = a.sort.reverse
a.each do |ai|
  puts "#{ai.numerator} #{ai.denominator}"
end
0