Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

 
 
 
 
Problems
 
 
# Name    
A
standard input/output
1 s, 256 MB
Submit  x24319
B
standard input/output
2 s, 256 MB
Submit  x16805
C
standard input/output
2.5 s, 256 MB
Submit  x11024
D
standard input/output
2 s, 256 MB
Submit  x3987
E
standard input/output
3 s, 256 MB
Submit  x1939
F
standard input/output
3 s, 256 MB
Submit  x258
Complete problemset
 
 
 
 
Questions about problems
 
 
# Party When Question Answer
   
2023-11-26 18:08:42 Announcement Problem A. Cover in Water
*****
Note that the picture in the statement correspond to the second test case.

Note that you should minimize the number of actions of type 1, not the total number of actions.

Note that you can move water from a cell to a cell that is not necessarily adjacent to it using the second operation (in particular, there can be a blocked cell between source and target cells).

The answer 2 to the fifth test case is correct.