12210 - A Match Making Problem

All about problems in Volume 122. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

12210 - A Match Making Problem

Post 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
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
lighted
Guru
Posts: 587
Joined: Wed Jun 11, 2014 9:56 pm
Location: Kyrgyzstan, Bishkek

Re: 12210 - A Match Making Problem

Post 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.
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman
Post Reply

Return to “Volume 122 (12200-12299)”