結果
| 問題 | No.231 めぐるはめぐる (1) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-06-06 10:12:50 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 34 ms / 1,000 ms | 
| コード長 | 256 bytes | 
| コンパイル時間 | 89 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-06-30 10:13:29 | 
| 合計ジャッジ時間 | 1,274 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
ソースコード
N = int(input())
m = 0
mi = 0
for i in range(N):
    G, D = map(int, input().split())
    t = G - 30000*D
    if m < t:
        m = t
        mi = i
A = m*6
if A >= 3000000:
    print("YES")
    print((str(mi+1)+'\n')*5 + str(mi+1))
else:
    print("NO")
            
            
            
        