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

我用最不人道的方法过了这道题

Posted by jacky2008051066 at 2009-04-15 18:31:32
#include<stdio.h>
int main()
{
	int k,m,sum,p,i,t;
	while(1)
	{
		scanf("%d",&k);
		if(k==0) return 0;
		switch(k)
		{
		case 1:printf("2\n");break;
	case 2:printf("7\n");break;
	case 3:printf("5\n");break;
	case 4:printf("30\n");break;
	case 5:printf("169\n");break;
	case 6:printf("441\n");break;
	case 7:printf("1872\n");break;
	case 8:printf("7632\n");break;
	case 9:printf("×××\n");break;
	case 10:printf("××××\n");break;
	case 11:printf("××××\n");break;
	case 12:printf("××××\n");break;
	case 13:printf("××××\n");break;
		}
	}
	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