結果

問題 No.322 Geometry Dash
ユーザー hotpepsihotpepsi
提出日時 2015-12-15 00:46:41
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 470 bytes
コンパイル時間 684 ms
コンパイル使用メモリ 68,916 KB
実行使用メモリ 4,872 KB
最終ジャッジ日時 2023-08-08 11:08:00
合計ジャッジ時間 6,417 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,384 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 62 ms
4,868 KB
testcase_05 AC 70 ms
4,572 KB
testcase_06 AC 73 ms
4,820 KB
testcase_07 AC 74 ms
4,704 KB
testcase_08 AC 77 ms
4,532 KB
testcase_09 AC 69 ms
4,696 KB
testcase_10 AC 72 ms
4,868 KB
testcase_11 AC 73 ms
4,696 KB
testcase_12 AC 75 ms
4,712 KB
testcase_13 AC 77 ms
4,700 KB
testcase_14 AC 73 ms
4,872 KB
testcase_15 AC 72 ms
4,848 KB
testcase_16 AC 75 ms
4,532 KB
testcase_17 AC 77 ms
4,872 KB
testcase_18 AC 78 ms
4,664 KB
testcase_19 AC 75 ms
4,652 KB
testcase_20 AC 75 ms
4,532 KB
testcase_21 AC 77 ms
4,616 KB
testcase_22 AC 79 ms
4,668 KB
testcase_23 AC 80 ms
4,528 KB
testcase_24 AC 76 ms
4,824 KB
testcase_25 AC 77 ms
4,688 KB
testcase_26 AC 79 ms
4,824 KB
testcase_27 AC 81 ms
4,664 KB
testcase_28 AC 83 ms
4,572 KB
testcase_29 AC 72 ms
4,376 KB
testcase_30 AC 78 ms
4,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main(int argc, char *argv[])
{
	int N;
	cin >> N;
	vector<pair<double, int> > v(N);
	for (int i = 0; i < N; ++i) {
		v[i].second = i + 1;
		cin >> v[i].first;
	}
	for (int i = 0; i < N; ++i) {
		double d;
		cin >> d;
		v[i].first /= d;
	}
	sort(v.rbegin(), v.rend());
	for (int i = 0; i < N; ++i) {
		if (i) {
			cout << " ";
		}
		cout << v[i].second;
	}
	cout << endl;
	return 0;
}
0