PEG Test - Halloween 2014
The Brap Lesh Mafia is an organization that collects candy from unsuspecting neighborhoods during Halloween.
There are
There are
Determine the amount of candy Rex will receive.
Input Specification
The first line of input will contain the integers:
Output Specification
Output a single integer, the number of units of candy that Rex will receive.
Sample Input 1
4 12
1 4
2 9
3 8
5 5
Sample Output 1
11
Explanation 1
Brap Lesh Mafia collects
Sample Input 2
1 1000000007
1000000000 1000000000
Sample Output 2
49
Comments
I love Rex