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 alpc62 at 2008-10-30 21:39:30 on Problem 2823
In Reply To:还能怎么搞,那么多数据读入输出,IO优化肯定很显然能提速。。。{put(int x)见内} Posted by:11223344 at 2008-10-30 21:35:22
> inline void put(int x){
> 	if(x< 0){
> 		putchar('-');
> 		x = -x;
> 	}
> 	if(x == 0){
> 		putchar('0');
> 		return;
> 	}
> 	char s[20];
> 	int bas = 0;
> 	for(;x;x/=10)s[bas++] = x%10+'0';
> 	for(;bas--;)putchar(s[bas]);
> 	return;
> }

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