結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
E31415926
|
| 提出日時 | 2016-06-26 14:15:59 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 510 bytes |
| 記録 | |
| コンパイル時間 | 926 ms |
| コンパイル使用メモリ | 87,664 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-08 07:39:54 |
| 合計ジャッジ時間 | 1,409 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
E31415926