시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB31114411847.967%

문제

승원이는 미술품 N개를 가지고 있다. 각각의 미술품은 1번부터 N번까지 번호가 매겨져 있다. i번 미술품의 크기는 Ai, 가치는 Bi로 나타낸다.

오늘은 승원이의 저택 1층에서 미술품을 전시하려고 한다. 승원이는 아래 조건을 만족하는 미술품을 골라서 전시하려고 한다.

  • 전시할 미술품 중에서 가장 큰 크기를 Amax, 가장 작은 크기를 Amin 이라고 한다. 전시할 미술품의 가치의 합을 S라고 한다.
  • 이때, S − (Amax − Amin) 가 가장 커야 한다.

승원이가 가지고 있는 미술품 N개의 크기와 가치가 주어졌을 때, S − (Amax − Amin) 의 최댓값을 구하는 프로그램을 작성하시오.

입력

첫째 줄에 승원이가 가지고 있는 미술품의 개수 N (2 ≤ N ≤ 500,000)이 주어진다.

둘째 줄부터 N개의 줄에 미술품의 크기 Ai와 가치 Bi가 1번 미술품 부터 순서대로 주어진다. (1 ≤ Ai ≤ 1,000,000,000,000,000 = 1015, 1 ≤ Bi ≤ 1,000,000,000)

출력

첫째 줄에  S − (Amax − Amin) 의 최댓값을 출력한다.

서브태스크

번호 배점 제한
1 10

N ≤ 16.

2 20

N ≤ 300.

3 20

N ≤ 5000.

4 50

추가적인 제약 조건이 없다.

예제 입력 1

3
2 3
11 2
4 5

예제 출력 1

6

예제 입력 2

6
4 1
1 5
10 3
9 1
4 2
5 3

예제 출력 2

7

예제 입력 3

15
1543361732 260774320
2089759661 257198921
1555665663 389548466
4133306295 296394520
2596448427 301103944
1701413087 274491541
2347488426 912791996
2133012079 444074242
2659886224 656957044
1345396764 259870638
2671164286 233246973
2791812672 585862344
2996614635 91065315
971304780 488995617
1523452673 988137562

예제 출력 3

4232545716

힌트

예제 1의 경우에 승원이는 3개의 미술품을 가지고 있고, 크기와 가치는 다음과 같다.

  • 1번 미술품의 크기는 2, 가치는 3.
  • 2번 미술품의 크기는 11, 가치는 2.
  • 3번 미술품의 크기는 4, 가치는 5

이때는, 1번과 3번을 전시하면 S − (Amax − Amin) = 6가 되고, 가장 큰 값이다.

  • 크기가 가장 큰 미술품은 3번이다. 따라서, Amax = 4.
  • 크기가 가장 작은 미술품은 1번이다. 따라서, Amin = 2.
  • 전시할 미술품 가치의 합은 3 + 5 = 8 이다.

따라서, S = 8 이고,  S − (Amax − Amin) 는 6이다.

W3sicHJvYmxlbV9pZCI6IjE1NTU0IiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVjODA0XHVjMmRjXHVkNjhjIiwiZGVzY3JpcHRpb24iOiI8cD5cdWMyYjlcdWM2ZDBcdWM3NzRcdWIyOTQgXHViYmY4XHVjMjIwXHVkNDg4IE5cdWFjMWNcdWI5N2MgXHVhYzAwXHVjOWMwXHVhY2UwIFx1Yzc4OFx1YjJlNC4gXHVhYzAxXHVhYzAxXHVjNzU4IFx1YmJmOFx1YzIyMFx1ZDQ4OFx1Yzc0MCAxXHViYzg4XHViZDgwXHVkMTMwIE5cdWJjODhcdWFlNGNcdWM5YzAgXHViYzg4XHVkNjM4XHVhYzAwIFx1YjllNFx1YWNhOFx1YzgzOCBcdWM3ODhcdWIyZTQuIGlcdWJjODggXHViYmY4XHVjMjIwXHVkNDg4XHVjNzU4IFx1ZDA2Y1x1YWUzMFx1YjI5NCBBPHN1Yj5pPFwvc3ViPiwgXHVhYzAwXHVjZTU4XHViMjk0IEI8c3ViPmk8XC9zdWI+XHViODVjIFx1YjA5OFx1ZDBjMFx1YjBiOFx1YjJlNC48XC9wPlxyXG5cclxuPHA+XHVjNjI0XHViMjk4XHVjNzQwIFx1YzJiOVx1YzZkMFx1Yzc3NFx1Yzc1OCBcdWM4MDBcdWQwZGQgMVx1Y2UzNVx1YzVkMFx1YzExYyBcdWJiZjhcdWMyMjBcdWQ0ODhcdWM3NDQgXHVjODA0XHVjMmRjXHVkNTU4XHViODI0XHVhY2UwIFx1ZDU1Y1x1YjJlNC4gXHVjMmI5XHVjNmQwXHVjNzc0XHViMjk0IFx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