here is some examples:
in1(from luogu):
2 4
3 2
out1:
2
in2(fuck your mum):
3 5
1 2 9
out2:
6
in3(the largest):
24 88
11 22 33 44 55 66 77 88
99 10 20 30 40 50 60 70
80 90 12 23 34 45 56 67
out3:
124470
in4(the second largest):
10 8
1 2 3 4 5 6 7 8 9 10
out4:
16599
in5(intresting):
2 114
114 514
out5:
325
in6(intresting):
8 24
12 23 34 45 13 24 35 46
out6:
578288