結果
問題 |
No.322 Geometry Dash
|
ユーザー |
|
提出日時 | 2017-04-14 13:11:17 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 85 ms / 2,000 ms |
コード長 | 467 bytes |
コンパイル時間 | 1,202 ms |
コンパイル使用メモリ | 123,948 KB |
実行使用メモリ | 12,556 KB |
最終ジャッジ日時 | 2024-06-12 18:43:50 |
合計ジャッジ時間 | 6,391 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }