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 alpc117 at 2007-10-18 22:58:29 on Problem 2354
In Reply To:……哪位高手说一下啊 Posted by:majia3 at 2005-07-23 00:20:12
		gets(st);
		a=(st[0]-'0')*10+(st[1]-'0');
		b=(st[3]-'0')*10+(st[4]-'0');
		c=(st[6]-'0')*10+(st[7]-'0');
		lat0=a+b/60.0+c/3600.0;
		if (st[10]=='S')
改成这样就过了
		scanf("%d^%d'%d\" %s",&a,&b,&c,st);

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