結果
| 問題 | No.231 めぐるはめぐる (1) | 
| コンテスト | |
| ユーザー |  maspy | 
| 提出日時 | 2020-01-20 20:28:06 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 35 ms / 1,000 ms | 
| コード長 | 388 bytes | 
| コンパイル時間 | 92 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-07-02 23:00:58 | 
| 合計ジャッジ時間 | 1,443 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
from operator import itemgetter
N = int(readline())
m = map(int,read().split())
GD = zip(m,m)
exps = [g - 30000*d for g,d in GD]
i, exp = max(enumerate(exps, 1), key=itemgetter(1))
if exp*6 >= 3*10**6:
    print('YES')
    print(*[i]*6, sep='\n')
else:
    print('NO')
            
            
            
        