結果

問題 No.231 めぐるはめぐる (1)
ユーザー E31415926E31415926
提出日時 2016-06-26 13:57:14
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 490 bytes
コンパイル時間 793 ms
コンパイル使用メモリ 72,900 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-02 04:20:07
合計ジャッジ時間 2,908 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 2 ms
4,376 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main()
{
	int n, g, d, i, max_dungeon;
	cin >> n;
	vector<int> exp(n);
	for (i = 0; i < n; ++i) {
		cin >> g >> d;
		exp.push_back(g - 30000 * d);
	}
	if (*max_element(exp.begin(), exp.end()) < 30000 * 100 / 6) {
		cout << "NO" << endl;
	}
	else {
		cout << "YES" << endl;
		max_dungeon = distance(exp.begin(), max_element(exp.begin(), exp.end()));
		for (i = 0; i < 6; ++i)cout << max_dungeon << endl;
	}
}
0