結果

問題 No.231 めぐるはめぐる (1)
ユーザー aitdccdaitdccd
提出日時 2018-01-28 20:10:40
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 602 bytes
コンパイル時間 1,526 ms
コンパイル使用メモリ 169,800 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-28 14:05:59
合計ジャッジ時間 3,320 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 WA -
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

#define REP(i, n) for(int i = 0; i < n; i++)
#define ALL(a) (a).begin(),(a).end()

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int n;
    cin >> n;
    vector<int> e(n);
    REP(i, n) {
        int g, d;
        cin >> g >> d;
        e[i] = g - 30000 * d;
    }

    sort(ALL(e), greater<int>());
    REP(i, n) {
        if (e[i] * 6 >= 30000 * 100) {
            cout << "YES" << endl;
            REP(j, 6) cout << i + 1 << endl;
            return 0;
        }
    }

    cout << "NO" << endl;
    return 0;
}
0