Description: KartRider
★ experimental tasks
Kart n vehicle license plate number are respectively 1,2, ..., n racing on the highway. Coffee is a KartRider love
Well is the course of the game she shot two photos in the photo can clearly see each vehicle s license plate number.
Shows two photographs from the first to the last one on the license plate number, please calculate your programming time period these two photos were taken
Occurred at least several overtaking.
★ data input
Enter the first line contains a positive integer n (1 <= n <= 50000), said the number of karting. The next two lines, each line
Including the n integers, said the photo first to the last one from the license plate number (1 to n the full array), each of the two numbers
Separated by a space between.
★ data output
Output is only one number, that at least the number of overtaking occurred, the answer is in the range of int type.
To Search:
File list (Check if you may need any files):
kartrider.doc
kartrider.pdf