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水过

Posted by aa2985759 at 2010-11-23 22:53:07 on Problem 1316
#include<iostream>
using namespace std;

int main()
{
	bool a[10050]={false};
	int i,j,m,n;
	for(i=0;i<10;i++)
		for(j=0;j<10;j++)
			for(m=0;m<10;m++)
				for(n=0;n<10;n++)
					a[1001*i+101*j+11*m+2*n]=true;
	for(i=0;i<10000;i++)
		if(!a[i])
			printf("%d\n",i);
}

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