5303: 【GESP202312四级】田忌赛马
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:2
Solved:2
Description

Input

Output

Sample Input Copy
3
1 3 5
2 4 6
Sample Output Copy
2
HINT
样例解释 1
第 1 轮,⽥忌派出速度为2的马匹,你可以派出速度为3的马匹迎战,本轮你获胜。
第 2 轮,⽥忌派出速度为4的马匹,你可以派出速度为5的马匹迎战,本轮你获胜。
第 3 轮,⽥忌派出速度为6的马匹,你可以派出速度为1的马匹迎战,本轮田忌获胜。
如此,你可以赢得2轮⽐赛。