結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2015-06-26 22:28:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 659 bytes |
| コンパイル時間 | 618 ms |
| コンパイル使用メモリ | 78,260 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-07 17:44:03 |
| 合計ジャッジ時間 | 1,830 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 5 |
ソースコード
#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;
}
sort(E.begin(), E.end());
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;
}
koyumeishi