OJ-Problems-Source/HDOJ/4389_autoAC.cpp
2016-09-04 15:55:06 +08:00

6 lines
112 B
C++

Here is a function f(x):
int f ( int x ) {
if ( x == 0 ) return 0;
return f ( x / 10 ) + x % 10;
}