結果

問題 No.322 Geometry Dash
ユーザー kura07kura07
提出日時 2015-12-15 11:22:10
言語 Ruby
(3.3.0)
結果
AC  
実行時間 462 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 890 ms
コンパイル使用メモリ 11,496 KB
実行使用メモリ 39,092 KB
最終ジャッジ日時 2023-08-08 11:50:19
合計ジャッジ時間 16,235 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,172 KB
testcase_01 AC 76 ms
15,124 KB
testcase_02 AC 76 ms
15,240 KB
testcase_03 AC 76 ms
15,040 KB
testcase_04 AC 354 ms
38,396 KB
testcase_05 AC 409 ms
38,588 KB
testcase_06 AC 421 ms
38,752 KB
testcase_07 AC 427 ms
38,580 KB
testcase_08 AC 431 ms
38,876 KB
testcase_09 AC 393 ms
38,352 KB
testcase_10 AC 415 ms
38,968 KB
testcase_11 AC 422 ms
38,596 KB
testcase_12 AC 433 ms
39,092 KB
testcase_13 AC 436 ms
39,012 KB
testcase_14 AC 412 ms
38,376 KB
testcase_15 AC 431 ms
39,064 KB
testcase_16 AC 431 ms
38,676 KB
testcase_17 AC 458 ms
38,700 KB
testcase_18 AC 462 ms
38,728 KB
testcase_19 AC 434 ms
38,028 KB
testcase_20 AC 455 ms
38,912 KB
testcase_21 AC 447 ms
38,548 KB
testcase_22 AC 445 ms
38,820 KB
testcase_23 AC 445 ms
39,080 KB
testcase_24 AC 425 ms
38,612 KB
testcase_25 AC 444 ms
38,640 KB
testcase_26 AC 444 ms
39,024 KB
testcase_27 AC 454 ms
38,656 KB
testcase_28 AC 450 ms
39,052 KB
testcase_29 AC 371 ms
35,584 KB
testcase_30 AC 395 ms
36,480 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
ts = gets.split.map(&:to_i)
ds = gets.split.map(&:to_i)
puts (1..n).zip(ts,ds).map{|n,t,d| [n,t.to_r/d] }.sort_by{|n,r| -r }.map{|n,r| n } * " "
0