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

0MS。。。AC

Posted by linlyu at 2009-05-09 20:24:33 on Problem 1012
In Reply To:报告一个BUG: 事先在本地把结果算出来,也能过,15MS 详见代码 Posted by:blablabla at 2006-02-09 11:22:11
#include<iostream>
using namespace std;
int main(){
	int n=0;
	long a[13]={2, 7 ,5 ,30 ,169 ,441 ,1872 ,7632 ,1740 ,93313 ,459901 ,1358657 ,2504881};
	cin>>n;
	while(n!=0){
		cout<<a[n-1]<<endl;
		cin>>n;
	}
	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