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

踩着水题挤进1000!贴个函数以表庆贺

Posted by fanhqme at 2009-02-14 11:52:07 on Problem 1504
int f(int a,int &ten){int t;
    if (a==0)return ten=1,0;
    t=f(a/10,ten);ten*=10;
    return t+(a%10)*(ten/10);
}
int f(int a){int t;return f(a,t);}


调用:f(a)

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