Problems
 
 
# Name    
A
standard input/output
1 s, 256 MB
Submit  x16415
B
standard input/output
1 s, 256 MB
Submit  x14462
C
standard input/output
1 s, 256 MB
Submit  x5529
D
standard input/output
3 s, 512 MB
Submit  x3927
E
standard input/output
1 s, 512 MB
Submit  x1178
F
standard input/output
3 s, 512 MB
Submit  x456
G
standard input/output
3.5 s, 1024 MB
Submit  x29
Complete problemset
 
 
 
 
Questions about problems
 
 
  Question Answer
2023-03-09 13:24:31
Announcement
Problem B. Settlement of Guinea Pigs
*****
Please, reload the statement. It is updated with extra explanations.

All examples are correct. Please note that at the time of purchase of a pig, its gender is unknown (it can be any).

In the fourth test case: Consider the option that the first pig is a female and the rest are males. Then, in order to accommodate the first four pigs, it will be necessary to have 3 aviaries (f + mm + m). During the purchase of the fifth pig, its gender is still unknown, so it must be settled in a separate enclosure before the doctor arrives.

So the answer for this test case is 4 (not 3).
2023-03-09 13:09:21
Announcement
Problem B. Settlement of Guinea Pigs
*****
Please note that there should be enough aviaries in any case, regardless of what gender any guinea pigs will have.