結果
| 問題 | No.231 めぐるはめぐる (1) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-11-15 21:21:38 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 393 bytes | 
| コンパイル時間 | 2,330 ms | 
| コンパイル使用メモリ | 187,752 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-15 05:31:51 | 
| 合計ジャッジ時間 | 3,147 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
ソースコード
#define _GLIBCXX_DEBUG
#define ll long long
#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
int main(){
  int N; cin >> N;
  int i = 0;
  int G, D;
  while(cin >> G >> D){
    i++;
    if(500000 <= G-D*30000){
      cout << "YES" << endl;
      for(int j = 0; j < 6; j++){
        cout << i << endl;
      }
      return 0;
    }
  }
  cout << "NO" << endl;
}
            
            
            
        