結果
| 問題 |
No.322 Geometry Dash
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-23 12:12:34 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 390 bytes |
| コンパイル時間 | 2,793 ms |
| コンパイル使用メモリ | 170,360 KB |
| 実行使用メモリ | 17,024 KB |
| 最終ジャッジ日時 | 2024-06-12 20:28:22 |
| 合計ジャッジ時間 | 11,962 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 27 |
ソースコード
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].to!real / a[0]).array;
writeln(ai);
auto ri = iota(n).array;
ri.sort!((a, b) => ai[a] < ai[b]);
writeln(ri.map!"a+1".array.to!(string[]).join(" "));
}