<swustoj>?id=26 翻转数的和
链接http://acm.swust.edu.cn/problem/26/
#include <stdio.h> int main() { int fun(int x); int a,b; while(scanf("%d%d",&a,&b)!=EOF) { printf("%d\n",fun(a)+fun(b)); } return 0; } int fun(int x) { int ans=0; while(x!=0) { ans=ans*10+x%10; x=x/10; } return ans; }

浙公网安备 33010602011771号