Problems from National High School Programming Contest 2020 - National Round

These problems are from a contest hosted on June 27, 2020 at 4:00 AM UTC. See details...

Standings
A. Butcher of Vowels
...if I'm to choose between one evil and another, then I prefer not to choose at all. -- Geralt (Th...
B. No More Child Labor
Child labor is a global crisis. As you are a problem solver, you need to be aware that many children...
C. Video Game Pro
Shefin is playing a video game. In this game, there will be $N$ buildings in a row. $i^{th}$ buildin...
D. Easy Peasy, Lemon Squeezy
Let's consider an array A which is initially empty. We'll perform two types of operation on that arr...
E. Next Permutation
A sequence of $N$ distinct integers is called a permutation if all the integers are between $1$ and ...
F. Arrange the Bricks!
You have $N$ bricks two dimensional bricks of the dimension $1 \times 2$. The bricks are rotatable i...
G. ACT 1: Ash Counting Trees
Ash Ketchum has a weird rooted tree (read Notes sections if you don't know about tree data structure...
H. Karim Meets Gollum
After hearing about Bilbo's Ring that he found in the Misty Mountains, Karim the Hobbit decided to e...
I. Array Partition
Today Leena learnt about subarrays and partitions. Given an array $A$, a subarray of this array is a...
J. Hououin Kyouma!
Okabe Rintarou, the mad scientist is doing research to find the most desired Steins Gate. Besides be...
K. The Hidden Island
It is believed that the hidden island of TreasureLand has many unsolved mysteries and undiscovered t...
L. Magic Mirror on the Wall
Kyablakanto and his friend Chalakanti went into the Mirror Room after browsing through the fair. In ...
Toph uses cookies. By continuing you agree to our Cookie Policy.