ICPC 2025 vòng Regional - Cake Cutting

View as PDF

Submit solution

Points: 1.63
Time limit: 1.0s
Memory limit: 512M

Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch

In case the statement didn't load correctly, you can download the statement here: Statement

Sample Input 1

3
8 6 2
4 3 R U
7 4 R D
8 6 2
4 3 R U
1 1 L D
8 6 2
4 3 R U
5 4 R U

Sample Output 1

12
3
12
1
12
0

Comments

Please read the guidelines before commenting.


There are no comments at the moment.