結果

問題 No.231 めぐるはめぐる (1)
ユーザー mlihua09
提出日時 2020-08-28 15:00:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 53 ms / 1,000 ms
コード長 315 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 61,184 KB
最終ジャッジ日時 2024-11-09 01:15:39
合計ジャッジ時間 1,512 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #


N = int(input())

g = 0

x = 0

for i in range(N):
    
    G, D = map(int, input().split())
    
    if G - 30000 * D > g:
        
        g = G - 30000 * D
        
        x = i + 1
        

if g * 6 >= 3000000:
    
    print('YES')
    
    print(x, x, x, x, x, x, sep='\n')
    
else:
    
    print('NO')
0