| ||||||||||
| 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 | |||||||||
拍了200组数据没wa一交就wa了#include<cstdio>
#include<ctime>
#include<cstdlib>
using namespace std;
int key=1000;
int main(int argv, char* args[])
{
int seed;
sscanf(args[1], "%d", &seed);
fprintf(stderr, "%d", seed);
srand(seed);
freopen("in.txt","w",stdout);
int m=rand()%key+1,n=rand()%50+50;
printf("%d %d\n",m,n);
for(int i=1;i<=m;++i)
printf("%d ",rand()%key+1);
puts("");
for(int i=1;i<=n;++i)
{
int up=rand()%m+1;
printf("%d ",up);
for(int j=1;j<=up;++j)
printf("%d ",rand()%m+1);
printf("%d\n",rand()%key+1);
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator