运输人员到
ffta2吧
全部回复
仅看楼主
level 1
DolphinAud 楼主
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
srand(time(NULL));
freopen("1.in","w",stdout);
long i,j,n,m;
n=rand()%100+1;
m=rand()%100+1;
printf("%ld %ld\n",n,m);
for(i=1;i<=n;i++,printf("\n"))
for(j=1;j<=m;j++)
printf("%ld ",rand()%10001);
return 0;
}

2011年06月29日 06点06分 1
level 9
收下
2011年06月29日 06点06分 2
level 7
orz ... gen么。
2011年06月29日 07点06分 3
level 1
DolphinAud 楼主
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
long a[100001][11];
char s[11];
int main()
{
long i,j,k,ix,iy,t,q,c,l,n,p;
freopen("1.in","r",stdin);freopen("1.out","w",stdout);
scanf("%ld",&t);
for(ix=1;ix<=t;ix++)
{
scanf("%ld\n",&n);
l=0;
for(iy=1;iy<=n;iy++)
{
gets(s);
if(p==1)continue;
q=strlen(s);
i=0;p=0;
for(j=0;j<q;j++)
{
c=s[j]-48;
k=a[i][c];
if(k==0)
{
l++;
a[i][c]=l;
k=l;
}else
if(j==q-1){p=1;printf("NO\n");break;}
else
if(a[k][10]==1){p=1;printf("NO\n");break;}
i=k;
}
a[i][10]=1;
}
if(p==0)printf("YES\n");
p=0;
for(iy=0;iy<=l;iy++)
a[iy][0]=a[iy][1]=a[iy][2]=a[iy][3]=a[iy][4]=
a[iy][5]=a[iy][6]=a[iy][7]=a[iy][8]=a[iy][9]=
a[iy][10]=0;
}
return 0;
}

2011年06月29日 08点06分 6
level 9
2011年06月29日 08点06分 7
level 8
第一个除了随机我什么都没看出来
2011年06月29日 09点06分 8
level 7
第一个就是个随机数据。。
2011年06月29日 09点06分 9
level 9
那就是个Gen孩纸。。。。
2011年06月29日 11点06分 10
level 11
表示你们学校难道是军办的?中学就搞这么系统的东西
2011年06月29日 12点06分 11
level 7
2011年06月29日 13点06分 12
level 11
这是神马
2011年06月29日 13点06分 13
level 7
去了你就知道为毛会有这种东西了。
2011年06月29日 13点06分 14
level 11
我问这是神马东西
2011年06月29日 14点06分 15
level 7
poi 。积水 。的gen 。随机数据生成器。
后面那个是poj 。 3630的程序。。 是我效率的2倍。。orz
2011年06月29日 14点06分 16
level 7
嗯那个链接是noip的吧。。 你点进去就知道了。。
全国信息学奥林匹克联赛。。 好像是叫这个 。。orz 。[拍砖]
2011年06月29日 14点06分 17
level 11
纯属自虐
2011年06月29日 15点06分 18
level 9
为毛是自虐。。。
2011年06月30日 05点06分 19
level 11
每天对着满屏幕天书一样的符号,跟着代码的步骤码字,按照程序的思维思考,不是自虐是什么
2011年06月30日 06点06分 20
level 7
有那么蛋疼吗。= =
2011年06月30日 07点06分 21
level 9
21L+1
2011年06月30日 11点06分 22
1 2 尾页