結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー |
|
提出日時 | 2018-01-28 20:09:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 567 bytes |
コンパイル時間 | 1,897 ms |
コンパイル使用メモリ | 171,220 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 14:52:59 |
合計ジャッジ時間 | 3,754 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 3 WA * 8 |
ソースコード
#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) { REP(j, 6) cout << i + 1 << endl; return 0; } } cout << "NO" << endl; return 0; }