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 yygy at 2014-07-01 18:49:23
bool dig(char x){return x>='0'&&x<='9';}
int getval()
{
	int ret=0,sign=1;
	char c;
	while(!dig(c=getchar())&&c!='-');
	if(c=='-')sign=-1;
	else ret=c-'0';
	while(dig(c=getchar()))ret=ret*10+c-'0';
	return ret*sign;
}

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