Problems from National High School Programming Contest 2021 (Senior)

These problems are from a contest hosted on June 11, 2021 at 3:00 AM UTC. See details...

Standings
A. Jewel the Magician
Jewel is a promising magician. Recently, he has learned a technique to mesmerize his audience. Let's...
B. Hidden Graph
There is an unweighted, undirected hidden graph. You are given an integer range from L to R. There a...
C. Shortest Path Recovery
Mr. Biscuit is in trouble. He accidentally deleted all the programs in his server and his database i...
shajia Moderate 9/22/64
D. The Need for Seed
The Need for Seed is a racing video game set in the fictional Fortune City. You, as a player of the ...
E. List of Strings
Initially you have an empty list D. In this problem you will be asked to execute three types of quer...
F. Count the Deliveries
Lazim has recently decided to open a pizza restaurant. His restaurant’s speciality is that they can ...
G. Yet Another XOR Tree Problem
You are given a tree with N nodes. A non-negative weight is assigned to each edge of the tree. Let’s...
H. Rotation and Queries
You will be given a string S consisting of lowercase English characters and N queries. In each query...
I. Fair Share
Alice and Bob are playing a game on an array A of N integers. The game lasts for K rounds. Each roun...
J. Shopping Mania
Shapla and Jui have entered the final round of Shopping Mania, an annual shopping game played by two...
K. Stick Race
It is the annual sports event in your school. There is an event going on named ‘‘Stick Race’’. This ...
L. F
You are given an integer sequence a1​,a2​,…,an​. For any non-negative integer k, let P(k)=l=1∏n​r=l,...
Toph uses cookies. By continuing you agree to our Cookie Policy.