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

貌似真没动静了~

Posted by zyl072 at 2008-10-28 20:14:15 on Problem 1025
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:
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