結果
| 問題 | 
                            No.231 めぐるはめぐる (1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2015-06-26 22:28:24 | 
| 言語 | Python2  (2.7.18)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 15 ms / 1,000 ms | 
| コード長 | 303 bytes | 
| コンパイル時間 | 82 ms | 
| コンパイル使用メモリ | 7,040 KB | 
| 実行使用メモリ | 6,656 KB | 
| 最終ジャッジ日時 | 2024-11-07 23:30:53 | 
| 合計ジャッジ時間 | 957 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
ソースコード
N = int(raw_input())
exp = 3000000
GD = [map(int, raw_input().split()) + [i] for i in xrange(N)]
G = sorted([[g - exp / 100 * d, i] for g, d, i in GD], reverse = True)
if 6 * max(G)[0] >= exp:
        print "YES"
        for i in xrange(6):
                print max(G)[1] + 1
else:
        print "NO"