結果
| 問題 | No.231 めぐるはめぐる (1) | 
| コンテスト | |
| ユーザー |  turner18_jp | 
| 提出日時 | 2017-12-12 01:47:38 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 35 ms / 1,000 ms | 
| コード長 | 268 bytes | 
| コンパイル時間 | 115 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-11-30 21:17:07 | 
| 合計ジャッジ時間 | 1,231 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
ソースコード
n = int(input())
re = 30000 * 100
pair = []
ef = 0
index = 0
for i in range(n):
  ex, d = map(int, input().split())
  if ex - 30000*d > ef:
    ef = ex - 30000*d
    index = i+1
if ef * 6 >= re:
  print('YES')
  for i in range(6):
    print(index)
else:
  print('NO')
            
            
            
        