結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2024-09-05 00:12:47 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 602 bytes |
| コンパイル時間 | 3,168 ms |
| コンパイル使用メモリ | 254,836 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-05 00:12:51 |
| 合計ジャッジ時間 | 4,348 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#else
#define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
int n;
cin >> n;
vector<pair<int, int>> a(n);
rep(i, n) {
int x, y;
cin >> x >> y;
a[i].first = x - 30000 * y;
a[i].second = i;
}
sort(a.rbegin(), a.rend());
if (a[0].first * 6 >= 30000'00) {
cout << "YES" << endl;
rep(_, 6) cout << a[0].second + 1 << endl;
}
else {
cout << "NO" << endl;
}
return 0;
}
a01sa01to