Q 1393: Bell God Racing
Time limit: 1Sec Memory Limit: 128MB
Title Description
Bell God recently coded tired, want to ride a bicycle scenery, so find a certain gentleman to ride a bicycle race. The speed of each bicycle of a certain gentleman and Bell God is known, Bell God wins one game to get 50 silver taels of silver, loses one game to lose 50 silver taels, and does not earn or lose in a tie. Bell God can arrange the number of high school and low grade bicycle appearances in any order, assuming that Bell God’s physical strength is unlimited without loss seek Bell God can earn up to how much money
Input
Multiple rows of test data, each row contains an integer n and 2n 32-bit positive integers, the first n indicates the number of bicycles, the next n 32-bit integers indicate the speed of a certain gentleman’s bicycle, and the last n 32-bit integers indicate the speed of Bell God’s bicycle
Output
The clock god can arrange the number sequence of bicycle appearances at will. Output the maximum amount of money the clock god can earn, the result must be in the range of 32-bit integers
Sample Input
|
|
Sample Output
|
|
C Code
|
|