結果

問題 No.322 Geometry Dash
ユーザー LeonardoneLeonardone
提出日時 2015-12-15 05:58:26
言語 Ruby
(3.3.0)
結果
AC  
実行時間 294 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 32,896 KB
最終ジャッジ日時 2024-04-26 04:18:33
合計ジャッジ時間 11,322 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
12,288 KB
testcase_01 AC 88 ms
12,288 KB
testcase_02 AC 86 ms
12,416 KB
testcase_03 AC 85 ms
12,288 KB
testcase_04 AC 242 ms
32,000 KB
testcase_05 AC 271 ms
31,104 KB
testcase_06 AC 276 ms
32,512 KB
testcase_07 AC 284 ms
32,256 KB
testcase_08 AC 286 ms
30,976 KB
testcase_09 AC 269 ms
32,000 KB
testcase_10 AC 277 ms
30,848 KB
testcase_11 AC 282 ms
32,512 KB
testcase_12 AC 288 ms
30,976 KB
testcase_13 AC 285 ms
32,768 KB
testcase_14 AC 277 ms
32,000 KB
testcase_15 AC 280 ms
32,000 KB
testcase_16 AC 291 ms
30,976 KB
testcase_17 AC 294 ms
32,640 KB
testcase_18 AC 293 ms
32,896 KB
testcase_19 AC 280 ms
32,384 KB
testcase_20 AC 283 ms
32,640 KB
testcase_21 AC 285 ms
31,104 KB
testcase_22 AC 289 ms
32,640 KB
testcase_23 AC 290 ms
31,488 KB
testcase_24 AC 286 ms
32,768 KB
testcase_25 AC 289 ms
32,128 KB
testcase_26 AC 280 ms
32,384 KB
testcase_27 AC 285 ms
32,512 KB
testcase_28 AC 290 ms
32,384 KB
testcase_29 AC 255 ms
24,576 KB
testcase_30 AC 274 ms
25,600 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#! ruby
# yukicoder My Practice
# author: Leonardone @ NEETSDKASU

def gs(); gets.chomp; end
def gi(); gets.to_i; end
def gss(); gets.chomp.split; end
def gis(); gss.map(&:to_i); end

n = gi
t = gis
d = gis

td = (1..n).zip(t,d).sort_by{|(i1,t1,d1)| d1.to_f / t1.to_f }

puts td.map{|i1,t1,d1| i1} * " "
0