Roy and Trains
Practice
3.8 (18 votes)
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
186 votes
Tags:
Ad-HocEasyMathOpen
Points:20
101 votes
Tags:
ApprovedBasic ProgrammingEasy
Points:30
31 votes
Tags:
AlgorithmsApprovedBit ManipulationDynamic ProgrammingMediumOpen
Editorial

Login to unlock the editorial