Roy and Coding Contest
Practice
4.2 (22 votes)
Ad Hoc
Approved
Easy
Implementation
Math
Open
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
18 votes
Tags:
Ad-HocEasyImplementation
Points:20
33 votes
Tags:
Basic ProgrammingMathNumber Theory
Points:20
26 votes
Tags:
ApprovedData StructuresEasyImplementationapproved
Editorial

Login to unlock the editorial