2019-2020 ACM-ICPC Brazil Subregional Programming Contest
A. Artwork
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

B. Buffoon
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

C. Crossings With Danger
time limit per test
1.5 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Examples
Input
5 6 7
2 2 O
3 2 N
4 2 N
4 5 N
2 6 O
5 5 L
2 4 O
Output
4
Input
2 2 3
1 1 L
1 2 O
2 2 N
Output
0
Input
2 2 3
1 1 L
1 2 O
2 1 N
Output
1

D. Denouncing Mafia
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

E. Exhibition of Clownfish
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

F. Forests in Danger
time limit per test
3 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

G. Getting Confidence
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

H. Hour for a Run
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

I. Interplanetary
time limit per test
1 second
memory limit per test
1024 megabytes
input
standard input
output
standard output

J. Jar of Water Game
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

K. Keep Calm and Sell Balloons
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

L. Less Coin Tosses
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

M. Maratona Brasileira de Popcorn
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output