結果

問題 No.322 Geometry Dash
ユーザー nebukuro09nebukuro09
提出日時 2017-03-22 11:33:00
言語 D
(dmd 2.107.1)
結果
WA  
実行時間 -
コード長 569 bytes
コンパイル時間 898 ms
コンパイル使用メモリ 118,276 KB
実行使用メモリ 14,580 KB
最終ジャッジ日時 2023-09-03 12:31:42
合計ジャッジ時間 9,164 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 WA -
testcase_04 AC 44 ms
13,588 KB
testcase_05 AC 44 ms
14,216 KB
testcase_06 AC 47 ms
14,436 KB
testcase_07 AC 49 ms
13,676 KB
testcase_08 AC 53 ms
12,684 KB
testcase_09 AC 43 ms
13,804 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 48 ms
13,372 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 48 ms
13,868 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 58 ms
13,628 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

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.stdio;

void main() {
    auto N = readln.chomp.to!int;
    auto T = readln.split.map!(to!long).array;
    auto D = readln.split.map!(to!long).array;

    auto acm = T.sum;
    auto TD = new Tuple!(long, int)[](N);

    foreach (i; 0..N) {
        TD[i] = tuple(D[i] * (acm-T[i]), i);
    }

    TD.sort!"a[0] < b[0]"();

    TD.map!(a => (a[1]+1).to!string).join(" ").writeln;
}
0