| ||||||||||
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:决定挑战此题 2008.10.27 4:52PM Posted by:fisheatscats at 2008-10-27 17:23:50 > 读入数据部分书写完成 > > freopen("1025.in","r",stdin); > > int a,b,c; > char ch; > > pc=0; > while (scanf("%c %d:%d:%d\n",&ch,&a,&b,&c)!=EOF && ch!='.') > { > pc++; > persons[pc].code=ch; > persons[pc].start.hh=a; > persons[pc].start.mm=b; > persons[pc].start.ss=c; > persons[pc].roomc=0; > int tmpa,tmpb; > while (scanf("%d",&tmpa) && tmpa>0) > { > scanf("%d",&tmpb); > persons[pc].roomc++; > persons[pc].rooms[persons[pc].roomc].level=tmpa/100; > persons[pc].rooms[persons[pc].roomc].id=tmpa%100; > persons[pc].rooms[persons[pc].roomc].stay=tmpb; > } > scanf("\n"); > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator