結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー |
|
提出日時 | 2018-01-28 20:10:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 602 bytes |
コンパイル時間 | 2,498 ms |
コンパイル使用メモリ | 171,216 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 15:00:00 |
合計ジャッジ時間 | 4,380 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 WA * 6 |
ソースコード
#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;}