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 1047. Simple Calculations

What Does CRASH mean?
Posted by Levan Khunjgurua[Tbilisi SU] 30 Mar 2011 22:47
What Does CRASH mean?

and why is there WA on 7 test?
c
Posted by Levan Khunjgurua[Tbilisi SU] 30 Mar 2011 23:27
double res = 1;
            int i = 0, k = 0;
            k = n / q;
            while (i < k)
            {
                res = res * (n - i * q);
                i++;
            }
            if(n % q != 0)
            {
                res = res * (n % q);
            }
            return res;
Re: c
Posted by Gio Pataraia [Tbilisi SU] 24 Apr 2011 21:58
anu chaiciklao ra mec magas miwers rekursiit vwerdi :/ :(