Gods & Monsters
Practice
4.1 (14 votes)
Modular arithmetic
Hard
Approved
Modular exponentiation
Mathematics
Number theory
Matrix exponentiation
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:30
6 votes
Tags:
Dynamic ProgrammingAlgorithmsApprovedMedium
Points:20
12 votes
Tags:
Ad-HocAlgorithmsApprovedEasyImplementationOpen
Points:30
183 votes
Tags:
AlgorithmsApprovedDynamic ProgrammingMediumOpen
Editorial

Login to unlock the editorial