結果

問題 No.750 Frac #1
ユーザー 👑 yumechiyumechi
提出日時 2019-12-03 19:37:23
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 176 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 11,472 KB
実行使用メモリ 15,380 KB
最終ジャッジ日時 2023-08-18 10:35:11
合計ジャッジ時間 4,649 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
15,032 KB
testcase_01 AC 75 ms
15,220 KB
testcase_02 WA -
testcase_03 AC 76 ms
15,084 KB
testcase_04 AC 71 ms
15,024 KB
testcase_05 AC 71 ms
15,316 KB
testcase_06 WA -
testcase_07 AC 72 ms
15,024 KB
testcase_08 AC 72 ms
15,260 KB
testcase_09 AC 73 ms
15,256 KB
testcase_10 AC 71 ms
15,036 KB
testcase_11 WA -
testcase_12 AC 75 ms
15,380 KB
testcase_13 AC 73 ms
15,136 KB
testcase_14 AC 69 ms
15,136 KB
testcase_15 AC 69 ms
15,060 KB
testcase_16 AC 69 ms
15,292 KB
testcase_17 AC 76 ms
15,136 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 72 ms
15,068 KB
testcase_21 AC 73 ms
15,240 KB
testcase_22 AC 75 ms
15,244 KB
testcase_23 AC 74 ms
15,120 KB
testcase_24 WA -
testcase_25 AC 73 ms
15,124 KB
testcase_26 WA -
testcase_27 AC 72 ms
15,112 KB
testcase_28 AC 70 ms
15,028 KB
testcase_29 AC 71 ms
15,144 KB
testcase_30 AC 69 ms
15,280 KB
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
a=Array.new(n)
n.times do |i|
  x,y=gets.split.map(&:to_i)
  a[i]=Rational(x,y)
end
a.sort!.reverse!
for v in a.each do
  puts "#{v.numerator} #{v.denominator}"
end
0