結果
問題 | No.322 Geometry Dash |
ユーザー | te-sh |
提出日時 | 2017-06-23 10:32:14 |
言語 | D (dmd 2.106.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 381 bytes |
コンパイル時間 | 2,450 ms |
コンパイル使用メモリ | 154,748 KB |
実行使用メモリ | 17,020 KB |
最終ジャッジ日時 | 2023-09-03 14:44:59 |
合計ジャッジ時間 | 11,342 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 2 ms
4,376 KB |
testcase_02 | AC | 2 ms
4,380 KB |
testcase_03 | AC | 1 ms
4,380 KB |
testcase_04 | AC | 53 ms
16,672 KB |
testcase_05 | AC | 56 ms
14,332 KB |
testcase_06 | AC | 61 ms
13,868 KB |
testcase_07 | AC | 68 ms
14,728 KB |
testcase_08 | AC | 74 ms
14,760 KB |
testcase_09 | AC | 55 ms
14,580 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 62 ms
15,984 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 68 ms
14,136 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | AC | 74 ms
14,296 KB |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
ソースコード
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(" ")); }