結果

問題 No.322 Geometry Dash
ユーザー te-shte-sh
提出日時 2017-06-23 12:13:10
言語 D
(dmd 2.106.1)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 375 bytes
コンパイル時間 1,583 ms
コンパイル使用メモリ 154,784 KB
実行使用メモリ 15,908 KB
最終ジャッジ日時 2023-09-03 14:45:38
合計ジャッジ時間 7,268 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 53 ms
15,408 KB
testcase_05 AC 56 ms
14,068 KB
testcase_06 AC 62 ms
14,088 KB
testcase_07 AC 68 ms
14,308 KB
testcase_08 AC 73 ms
13,952 KB
testcase_09 AC 55 ms
14,032 KB
testcase_10 AC 59 ms
14,380 KB
testcase_11 AC 65 ms
14,088 KB
testcase_12 AC 72 ms
14,128 KB
testcase_13 AC 76 ms
14,568 KB
testcase_14 AC 62 ms
14,676 KB
testcase_15 AC 66 ms
14,512 KB
testcase_16 AC 73 ms
13,956 KB
testcase_17 AC 79 ms
14,452 KB
testcase_18 AC 82 ms
14,592 KB
testcase_19 AC 68 ms
14,676 KB
testcase_20 AC 72 ms
14,012 KB
testcase_21 AC 79 ms
14,716 KB
testcase_22 AC 82 ms
14,468 KB
testcase_23 AC 85 ms
14,316 KB
testcase_24 AC 74 ms
14,828 KB
testcase_25 AC 76 ms
14,504 KB
testcase_26 AC 82 ms
14,552 KB
testcase_27 AC 86 ms
14,436 KB
testcase_28 AC 88 ms
15,908 KB
testcase_29 AC 71 ms
11,552 KB
testcase_30 AC 77 ms
15,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.algorithm, std.conv, std.range, std.stdio, std.string;

void main()
{
  auto n = readln.chomp.to!size_t;
  auto ti = readln.split.to!(int[]);
  auto di = readln.split.to!(int[]);

  auto ai = zip(ti, di).map!(a => a[1].to!real / a[0]).array;
  auto ri = iota(n).array;
  ri.sort!((a, b) => ai[a] < ai[b]);

  writeln(ri.map!"a+1".array.to!(string[]).join(" "));
}
0