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 |
数据In Reply To:Re:各位大哥有没有什么数据啊。。。。这里讲过的都过了可是还是WA... Posted by:lb1990330 at 2010-11-03 19:51:19 > 用这个调下吧 我自己写的 我就用这个调过的 > #include<stdio.h> > #include<stdlib.h> > #include<algorithm> > #include<math.h> > #include<ctime> > using namespace std; > int main() > { > freopen("test2.out","w",stdout); > srand(time(NULL)); > for(int kk=1;kk<=10;kk++) > { > int a=rand()%49+1,b=rand()%49+1,c=rand()%49+1; > printf("%d %d %d\n",a,b,c); > for(int i=1;i<=a;i++) > { > for(int j=1;j<=c;j++) > printf("%d ",rand()%4); > printf("\n"); > } > for(int i=1;i<=b;i++) > { > for(int j=1;j<=c;j++) > printf("%d ",rand()%4); > printf("\n"); > } > for(int k=1;k<=c;k++) > { > for(int i=1;i<=a;i++) > { > for(int j=1;j<=b;j++) > printf("%d ",rand()%99+1); > printf("\n"); > } > } > } > printf("0 0 0\n"); > } > Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator