結果
| 問題 | No.231 めぐるはめぐる (1) | 
| コンテスト | |
| ユーザー |  E31415926 | 
| 提出日時 | 2016-06-26 14:15:59 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 510 bytes | 
| コンパイル時間 | 894 ms | 
| コンパイル使用メモリ | 72,448 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-08 00:23:55 | 
| 合計ジャッジ時間 | 1,333 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
	int n, g, d, i;
	size_t max_dungeon;
	cin >> n;
	vector<int> exp;
	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())) + 1;
		for (i = 0; i < 6; ++i)cout << max_dungeon << endl;
	}
	return 0;
}
            
            
            
        