ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1024. Permutations

There is a simple O(n) algorithm that does not use mathematical GCD algorithm
Posted by Nic Roets 24 Sep 2011 22:18
It does not use long long. It does not use any mathematical algorithm like GCD.
See if you can find it.
Re: There is a simple O(n) algorithm that does not use mathematical GCD algorithm
Posted by Aman 15 Sep 2016 05:17