Navi and beer
Practice
3.3 (169 votes)
Implementation
Basic programming
Very Easy
Ready
Mathematics
Approved
Code Editor

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:50
Tags:
Dynamic ProgrammingHardHeavy light decompositionAlgorithmsOpenApprovedAlgorithmsDisjoint set
Points:30
402 votes
Tags:
Brute-force searchEasy-MediumGreedy algorithm
Points:30
9 votes
Tags:
ApprovedCombinatoricsMathMediumNumber TheoryOpen
Editorial

Login to unlock the editorial