結果

問題 No.322 Geometry Dash
ユーザー nebukuro09nebukuro09
提出日時 2017-04-14 13:11:17
言語 D
(dmd 2.106.1)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 467 bytes
コンパイル時間 863 ms
コンパイル使用メモリ 114,844 KB
実行使用メモリ 12,700 KB
最終ジャッジ日時 2023-09-03 12:50:13
合計ジャッジ時間 7,109 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,384 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 47 ms
10,368 KB
testcase_05 AC 51 ms
9,076 KB
testcase_06 AC 58 ms
9,336 KB
testcase_07 AC 66 ms
9,172 KB
testcase_08 AC 74 ms
9,324 KB
testcase_09 AC 50 ms
9,100 KB
testcase_10 AC 53 ms
9,200 KB
testcase_11 AC 63 ms
9,264 KB
testcase_12 AC 71 ms
10,072 KB
testcase_13 AC 77 ms
9,328 KB
testcase_14 AC 58 ms
10,492 KB
testcase_15 AC 63 ms
9,428 KB
testcase_16 AC 72 ms
10,440 KB
testcase_17 AC 79 ms
10,580 KB
testcase_18 AC 84 ms
11,760 KB
testcase_19 AC 67 ms
10,116 KB
testcase_20 AC 72 ms
10,920 KB
testcase_21 AC 81 ms
11,200 KB
testcase_22 AC 85 ms
11,836 KB
testcase_23 AC 88 ms
12,700 KB
testcase_24 AC 73 ms
10,796 KB
testcase_25 AC 77 ms
10,984 KB
testcase_26 AC 83 ms
12,284 KB
testcase_27 AC 87 ms
12,504 KB
testcase_28 AC 90 ms
11,768 KB
testcase_29 AC 71 ms
9,972 KB
testcase_30 AC 79 ms
11,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.string;

void main() {
    auto N = readln.chomp.to!int;
    auto T = readln.split.map!(to!int).array;
    auto D = readln.split.map!(to!int).array;
    auto A = N.iota.array;
    A.sort!((a, b) => T[b]*D[a] < T[a]*D[b])();
    A.map!(a => (a+1).to!string).join(" ").writeln;
}
0