結果
| 問題 | 
                            No.231 めぐるはめぐる (1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             suibaka_ku
                         | 
                    
| 提出日時 | 2017-03-07 11:00:32 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 520 bytes | 
| コンパイル時間 | 628 ms | 
| コンパイル使用メモリ | 76,128 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-23 16:59:45 | 
| 合計ジャッジ時間 | 1,464 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <iomanip>
using namespace std;
using ll = long long;
int main() {
    int N;
    cin >> N;
    int res = -1;
    for(int i=0; i<N; ++i) {
        int g, d;
        cin >> g >> d;
        if(3000000 <= 6*(g - d*30000)) {
            res = i+1;
        }
    }
    if(res == -1) {
        cout << "NO" << endl;
    } else {
        cout << "YES" << endl;
        for(int i=0; i<6; ++i) {
            cout << res << endl;
        }
    }
}
            
            
            
        
            
suibaka_ku