Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:我用了很流氓的方法,这道题为什么会错呢?

Posted by yygy at 2009-02-24 21:43:58 on Problem 2346
In Reply To:Re:我用了很流氓的方法,这道题为什么会错呢? Posted by:jinlang5252 at 2006-08-08 20:06:52
#include<stdio.h>
int main()
{
    int ans[5]={10,670,55252,4816030,432457640},n;
    while(scanf("%d",&n)!=EOF)
        printf("%d\n",ans[n/2-1]);
    return 0;
}
这样写更省事

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator