|
|
back to boardWhy my program wrong answer? Posted by 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? >Would you please recalculate the four numbers? You should :) Re: Why my program wrong answer? Posted by Hany 30 Aug 2003 18:48 That is cheating answer the problem by logic. |
|
|