結果
| 問題 | 
                            No.231 めぐるはめぐる (1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             fumi6328
                         | 
                    
| 提出日時 | 2018-10-12 22:11:19 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 388 bytes | 
| コンパイル時間 | 1,766 ms | 
| コンパイル使用メモリ | 165,832 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-12 17:52:14 | 
| 合計ジャッジ時間 | 3,069 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 7 WA * 4 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n,g,d,ans = 0;
    cin >> n;
    for(int i = 0; i < n; i++){
        cin >> g >> d;
        if(500000 <  g - 30000*d) ans = i + 1;
    }
    if(ans){
        cout << "YES" << endl;
        for(int i = 0; i < 6; i++) cout << ans << endl;
    }else{
        cout << "NO" << endl;
    }
    return 0; 
}
            
            
            
        
            
fumi6328