Page 1 of 1

12210 - A Match Making Problem

Posted: Thu Jan 30, 2014 12:08 pm
by uDebug
Here's some input / output that I found useful during testing / debugging.

Input:

Code: Select all

4 4
26
25
2
21
35
25
23
24
1 2
20
30
40
4 2
5
5
10
15
20
18
2 1
1
1
45
8 6
55
55
55
45
23
2
3
11
60
60
60
33
33
11
6 9
25
25 
25
24
24
24
3
4
5
24
24
24
25
25
25
9 6
43
23
2
3
35
57 
58
59
60
2
3
21
21
22
30
0 0
AC Output:

Code: Select all

Case 1: 0
Case 2: 0
Case 3: 2 5
Case 4: 1 1
Case 5: 2 2
Case 6: 0
Case 7: 3 2

Re: 12210 - A Match Making Problem

Posted: Thu Jul 20, 2017 6:36 pm
by lighted
Input data of fourth case is not correct. Age of bachelor and spinster should be between 2..60.
Each of the next B lines contains one integer between 2 and 60 (inclusive) which denotes the age of one bachelor in the community. Each of the next S lines contains one integer between 2 and 60 (inclusive) which denotes the age of one spinster in the community.