Power Failure
Practice
3.8 (17 votes)
Combinatorics
Dynamic programming
Easy
Math
Number theory
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:20
13 votes
Tags:
AlgorithmsApprovedBasic ProgrammingEasyImplementationOpen
Points:20
18 votes
Tags:
Ad-HocAlgorithmsApprovedEasyOpen
Points:20
7 votes
Tags:
Basic ProgrammingBasics of ImplementationEasyHash MapsImplementationString Manipulation
Editorial

Login to unlock the editorial