10332: 程序自动分析

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:0

Description

Input

Output

Sample Input Copy

1 2 1
2 3 1
1 3 0
4 2 1
1 2 0
3 2 1
1 3 1

Sample Output Copy

2
3
4

HINT

由于是ACM赛制

1<=i,j,L<=10^5

1<=xi<=L