結果
問題 | No.322 Geometry Dash |
ユーザー | nebukuro09 |
提出日時 | 2017-03-22 13:08:05 |
言語 | D (dmd 2.107.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 569 bytes |
コンパイル時間 | 901 ms |
コンパイル使用メモリ | 118,452 KB |
実行使用メモリ | 14,572 KB |
最終ジャッジ日時 | 2023-09-03 12:32:00 |
合計ジャッジ時間 | 9,396 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 1 ms
4,380 KB |
testcase_02 | AC | 2 ms
4,376 KB |
testcase_03 | WA | - |
testcase_04 | AC | 48 ms
13,364 KB |
testcase_05 | AC | 48 ms
13,004 KB |
testcase_06 | AC | 55 ms
13,776 KB |
testcase_07 | AC | 55 ms
14,572 KB |
testcase_08 | AC | 59 ms
12,756 KB |
testcase_09 | AC | 50 ms
13,436 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 52 ms
13,380 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 56 ms
13,184 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | AC | 59 ms
13,036 KB |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
ソースコード
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 = D.sum; auto TD = new Tuple!(long, int)[](N); foreach (i; 0..N) { TD[i] = tuple(T[i] * (acm-D[i]), i); } TD.sort!"a[0] > b[0]"(); TD.map!(a => (a[1]+1).to!string).join(" ").writeln; }