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 1044. Lucky Tickets. Easy!

Show all messages Hide all messages

Why my program wrong answer? succkey 19 Jul 2003 15:43
#include <stdio.h>
long a[4]={10,670,6160,518650};
int n;

void init()
{
  scanf("%d",&n);
}
int main()
{
  init();
  printf("%ld",a[n/2-1]);
  return 0;
}
Re: Why my program wrong answer? Zahid Munir Kallal 17 Aug 2003 13:11
>Would you please recalculate the four numbers?
               You should :)
Re: Why my program wrong answer? Hany 30 Aug 2003 18:48
That is cheating answer the problem by logic.