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 |
非打表无函数0MS水过#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator