結果
| 問題 | No.322 Geometry Dash |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-04-14 13:11:17 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 2,000 ms |
| コード長 | 467 bytes |
| 記録 | |
| コンパイル時間 | 888 ms |
| コンパイル使用メモリ | 104,516 KB |
| 実行使用メモリ | 13,144 KB |
| 最終ジャッジ日時 | 2026-03-05 14:20:59 |
| 合計ジャッジ時間 | 6,086 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 27 |
ソースコード
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;
}