Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

看了大师的思路。。。然后贴一组测试数据。。。。

Posted by 274856653 at 2019-09-25 15:19:15 on Problem 1172
input
1 2 -2
3 -2
3 -2
5 4 -2
6 4 -2
6 -2
7 8 -2
9 -2
5 9 -2
-1

1 2 -2
3 -2
3 -2
4 5 -2
6 -2
6 -2
7 8 -2
9 -2
9 5 -2
-1

1 -2
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 -2
3 -2
48 49 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 3 -2
-1

1 -2
2 -2
3 -2
4 -2
5 -2
6 -2
7 -2
8 -2
9 -2
10 -2
11 -2
12 -2
13 -2
14 -2
15 -2
16 -2
17 -2
18 -2
19 -2
20 -2
21 -2
22 -2
23 -2
24 -2
25 -2
26 -2
27 -2
28 -2
29 -2
30 -2
31 -2
32 -2
33 -2
34 -2
35 -2
36 -2
37 -2
38 -2
39 -2
40 -2
41 -2
42 -2
43 -2
44 -2
45 -2
46 -2
47 4 -2
48 -2
49 -2
-1

1 -2
2 1 -2
3 0 -2
3 4 -2
5 0 -2
7 6 -2
7 -2
8 -2
-1

1 -2
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 -2
3 48 -2
49 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 -2
2 3 -2
-1

1 -2
2 -2
3 -2
4 -2
5 -2
6 -2
7 -2
8 -2
9 -2
10 -2
11 -2
12 -2
13 -2
14 -2
15 -2
16 -2
17 -2
18 -2
19 -2
20 -2
21 -2
22 -2
23 -2
24 -2
25 -2
26 -2
27 -2
28 -2
29 -2
30 -2
31 -2
32 -2
33 -2
34 -2
35 -2
36 -2
37 -2
38 -2
39 -2
40 -2
41 -2
42 -2
43 -2
44 -2
45 -2
46 -2
47 -2
48 -2
49 -2
-1

1 -2
2 1 -2
3 0 -2
3 4 -2
5 0 -2
5 7 6 -2
7 -2
8 -2
-1

1 2 -2
2 3 -2
3 4 -2
4 5 -2
5 6 -2
6 7 -2
7 8 -2
8 9 -2
9 10 -2
10 11 -2
11 12 -2
12 13 -2
13 14 -2
14 15 -2
15 16 -2
16 17 -2
17 18 -2
18 19 -2
19 20 -2
20 21 -2
21 22 -2
22 23 -2
23 24 -2
24 25 -2
25 26 -2
26 27 -2
27 28 -2
28 29 -2
29 30 -2
30 31 -2
31 32 -2
32 33 -2
33 34 -2
34 35 -2
35 36 -2
36 37 -2
37 38 -2
38 39 -2
39 40 -2
40 41 -2
41 42 -2
42 43 -2
43 44 -2
44 45 -2
45 46 -2
46 47 -2
47 48 -2
48 49 -2
49 -2
-1

1 -2
2 0 -2
3 1 -2
4 2 -2
5 3 -2
6 4 -2
7 5 -2
8 6 -2
9 7 -2
10 8 -2
11 9 -2
12 10 -2
13 11 -2
14 12 -2
15 13 -2
16 14 -2
17 15 -2
18 16 -2
19 17 -2
20 18 -2
21 19 -2
22 20 -2
23 21 -2
24 22 -2
25 23 -2
26 24 -2
27 25 -2
28 26 -2
29 27 -2
30 28 -2
31 29 -2
32 30 -2
33 31 -2
34 32 -2
35 33 -2
36 34 -2
37 35 -2
38 36 -2
39 37 -2
40 38 -2
41 39 -2
42 40 -2
43 41 -2
44 42 -2
45 43 -2
46 44 -2
47 45 -2
48 46 -2
49 47 -2
-1

1 2 -2
3 -2
3 -2
4 5 -2
6 -2
6 -2
7 5 8 -2
9 -2
9 -2
-1

output
2 3 6 
1 3 
2 3 6 
1 3 
2 1 3 
1 1 
48 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 
6 1 2 3 4 47 48 
6 1 2 3 4 5 7 
2 5 7 
2 1 3 
2 1 3 
48 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 
48 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 
6 1 2 3 4 5 7 
2 5 7 
0 
0 
48 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 
0 
2 3 6 
1 3 

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator