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

Re:各位大哥有没有什么数据啊。。。。这里讲过的都过了可是还是WA...

Posted by lb1990330 at 2010-11-03 19:51:19 on Problem 2516
In Reply To:各位大哥有没有什么数据啊。。。。这里讲过的都过了可是还是WA... Posted by:bigfish9 at 2010-09-05 01:39:55
用这个调下吧 我自己写的 我就用这个调过的
#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:
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