| ||||||||||
| 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 | |||||||||
多谢指点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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator