5142: P7186 [CRCI2008-2009] TABLICA(普及)
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:3
Solved:1
Description

Input

Output

Sample Input Copy
4 1
6 3 4
Sample Output Copy
3
HINT
