Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
找了个读入优化,T了,scanf就A了读入优化: 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator