Problems from National High School Programming Contest 2021 (Junior)

These problems are from a contest hosted on . 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 LLL to RRR. The...

C. Shortest Path Recovery

Mr. Biscuit is in trouble. He accidentally deleted all the programs in his server and his database i...

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 DDD. In this problem you will be asked to execute three types of qu...

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 NNN nodes. A non-negative weight is assigned to each edge of the tree. Let...

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 AAA of NNN integers. The game lasts for KKK rounds. Eac...

J. Shopping Mania

Shapla and Jui have entered the final round of Shopping Mania, an annual shopping game played by two...

Toph uses cookies. By continuing you agree to our Cookie Policy.