ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1090. In the Army Now

PBDS_TREE SOLUTION
Posted by khdz 25 Jul 2021 00:44
You can use pbds_tree to solve this problem. PBDS Tree function named "order_by_key" will solve the problem like: find number of elements, which lower than x