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 1023. Buttons

very easy
Posted by bobchennan 7 Mar 2009 14:41
#include <stdio.h>
int main()
{
      long i=3;
      long long a;
      scanf("%I64d",&a);
      while (a%i!=0)
        i++;
      printf("%ld",i-1);
      return 0;
}
Re: very easy
Posted by melkiy 8 Mar 2009 04:53
bobchennan,
DO NOT post your solutions!
Re: very easy
Posted by nguyenductam 26 Mar 2010 18:40
melkiy says right. but post "good idea" to solve problem. Algorithm to solve is important

Edited by author 26.03.2010 18:41

Edited by author 26.03.2010 18:41