結果
| 問題 | No.231 めぐるはめぐる (1) | 
| コンテスト | |
| ユーザー |  koyumeishi | 
| 提出日時 | 2015-12-10 07:02:04 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 631 bytes | 
| コンパイル時間 | 627 ms | 
| コンパイル使用メモリ | 75,848 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-08 00:08:00 | 
| 合計ジャッジ時間 | 1,339 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
ソースコード
#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
#include <set>
using namespace std;
const long long exp_ = 30000 * 100;
const long long pena = 30000;
int main(){
	int n;
	cin >> n;
	vector<long long> G(n), D(n);
	vector<long long> E(n);
	for(int i=0; i<n; i++){
		cin >> G[i] >> D[i];
		E[i] = G[i] - D[i] * pena;
	}
	auto e = max_element(E.begin(), E.end());
	if(*e*6 >= exp_){
		cout << "YES" << endl;
		for(int i=0; i<6; i++) cout << (e - E.begin()) + 1 << endl;
	}else{
		cout << "NO" << endl;
	}
	return 0;
}
            
            
            
        