結果
| 問題 | No.231 めぐるはめぐる (1) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-02-23 20:37:27 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 65 ms / 1,000 ms | 
| コード長 | 294 bytes | 
| コンパイル時間 | 155 ms | 
| コンパイル使用メモリ | 82,344 KB | 
| 実行使用メモリ | 65,584 KB | 
| 最終ジャッジ日時 | 2024-09-22 14:58:53 | 
| 合計ジャッジ時間 | 1,706 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
ソースコード
N = int(input())
need = 30000 * 100
GD = [list(map(int, input().split())) + [i] for i in range(N)]
GD.sort(key = lambda x: x[0] - 30000 * x[1], reverse = True)
if 6 * GD[0][0] - 180000 * GD[0][1] >= need:
    print("YES")
    for i in range(6):
        print(GD[0][2] + 1)
else:
    print("NO")
            
            
            
        