結果
| 問題 | No.322 Geometry Dash |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-23 10:32:14 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 381 bytes |
| 記録 | |
| コンパイル時間 | 841 ms |
| コンパイル使用メモリ | 129,408 KB |
| 実行使用メモリ | 15,776 KB |
| 最終ジャッジ日時 | 2026-07-26 03:50:41 |
| 合計ジャッジ時間 | 8,552 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 9 WA * 18 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string;
void main()
{
auto n = readln.chomp.to!size_t;
auto ti = readln.split.to!(int[]);
auto di = readln.split.to!(int[]);
auto ai = zip(ti, di).map!(a => (a[1] + 1).to!real / a[0]).array;
auto ri = iota(n).array;
ri.sort!((a, b) => ai[a] < ai[b]);
writeln(ri.map!"a+1".array.to!(string[]).join(" "));
}