
Selamat pagi, Codeforces!
We are excited to invite you to the mirror of BNPC-HS Qualification Round!
BNPC-HS (Bina Nusantara Programming Contest for High School Students) is an annual competitive programming competition hosted by BINUS University as part of BeeFest, a national-level competition for high school students. This contest is mirrored from the problemset of the Qualification Round of BNPC-HS 2025, and is open for everyone to join (not limited to high school students)!
Key details:
Rated for all
Contest links: TLX
Duration: 3 hours
Problems: 6
Allowed languages: C, C++11, C++17, C++20, Pascal, Java, Python 3, Go, Rust
Contest style: ICPC
- Penalty per wrong submission: 6 minutes
Available Languages: English, Bahasa Indonesia
Writers: Alstonton, chpp, Chiz, Drakozs, Michael_H, Yoshiyuki, Zanite
We would like to thank:
- bonk, Ngeces, SunShine11, takeonicky, and vannnn for testing the problems and giving superb feedback.
- fushar for the magnificent TLX platform.
Please register for the contest and we encourage you to read all problems! We hope you enjoy the mirror!
UPD: Contest is over! We apologize for the delay in the post-contest update.
Congratulations to our top 5:
Congratulations as well to Benq who was the first to solve problems A to E, and to potato167 who was the first to solve problem F!
You can upsolve the problems here.
Editorial is available in the upsolve link.
Thank you for participating and see you on the next contest!









Auto comment: topic has been updated by Zanite (previous revision, new revision, compare).
is it rated?
For problem F, what's the time complexity of the model solution (and how much time does it take)?
The time complexity is $$$O(N + Q \sqrt{N \log N})$$$, and it takes around 1.7 seconds in TLX.
Any hints on the solution?
The editorial has been published — sorry for the delay.