結果
| 問題 | No.322 Geometry Dash |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-22 13:08:05 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 569 bytes |
| 記録 | |
| コンパイル時間 | 1,042 ms |
| コンパイル使用メモリ | 129,344 KB |
| 実行使用メモリ | 14,340 KB |
| 最終ジャッジ日時 | 2024-06-12 18:26:29 |
| 合計ジャッジ時間 | 8,191 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 9 WA * 18 |
ソースコード
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;
}