The minimum sum
Practice
4 (1 votes)
Number theory
Algorithms
Gcd
Math
Greedy algorithm
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
47 votes
Tags:
Medium-HardMobius InversionNumber TheoryMathematicsGreatest common divisor
Points:50
72 votes
Tags:
ReadyBasic ProgrammingMedium-HardGreatest common divisorMathematics
Points:50
1 votes
Tags:
Extended EuclidGreatest common divisorMedium-HardMathematicsOpenApproved
Editorial

Login to unlock the editorial