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

找了个读入优化,T了,scanf就A了

Posted by justryit at 2013-08-06 14:28:06 on Problem 3349 and last updated at 2013-08-06 14:32:18
读入优化:
char __buf;
#define READ_INT(x) { \
    while((__buf = getchar()) == EOF || __buf == '\n' || __buf == ' '); \
    x = __buf - '0'; \
    while((__buf = getchar()) != EOF && __buf != '\n' && __buf != ' ') \
        x = x * 10 + __buf - '0'; \
}
求大神指点是不是写丑了
scanf真心快啊。。。

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