1405: mygo!!!!!
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:401
Solved:17
Description
mygo!!!!!乐团中一共有五名成员,现给你五名成员的能力值序列$p$,两名成员的契合度即为这两名成员能力值的最大公约数,请求出能力值第$x$大的成员与第$y$大的成员的契合度。
Input
第一行输入五个整数$p_{i},(1≤p_{i}≤10^9)$;
第二行输入整数$x,y(1≤x≤y≤5)$;
第二行输入整数$x,y(1≤x≤y≤5)$;
Output
输出能力值第$x$大的成员与第$y$大的成员的契合度。
Sample Input Copy
5 2 3 4 1
1 3
Sample Output Copy
1