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 1083. Factorials!!!

please help if accepted
Posted by amirani 20 Jul 2011 22:08
please anyone help me if accepted . it gives me wrong answer on test 1 and as i suppose in test 1 k=0 and i don't know what write :) thanks...
Re: please help if accepted
Posted by عثمان 31 Aug 2012 08:03
int result = 1;

for (int i = n; i > 0; i -= k)
  result *= i;