| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:我用了很流氓的方法,这道题为什么会错呢?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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator