博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
poj1504
阅读量:7175 次
发布时间:2019-06-29

本文共 552 字,大约阅读时间需要 1 分钟。

简单题

#include 
#include
#include
#include
#include
using namespace std;int reverse_num(int a){ char st[50]; sprintf(st, "%d", a); reverse(st, st + strlen(st)); int ret; sscanf(st, "%d", &ret); return ret;}int main(){ int t; scanf("%d", &t); while (t--) { int a, b; scanf("%d%d", &a, &b); printf("%d\n", reverse_num(reverse_num(a) + reverse_num(b))); } return 0;}
View Code

 

转载地址:http://ehfzm.baihongyu.com/

你可能感兴趣的文章
远程连接mysql 授权方法详解
查看>>
FreeBSD网络配置
查看>>
@synthesize window=_window; 的理解
查看>>
Greenlet理解要点
查看>>
罗森伯格应邀主讲CDCC百家大讲堂38期
查看>>
How to Install Nextcloud 13 Server on Debian 9
查看>>
[深入理解文件系统之一] IO系统调用
查看>>
Java之implements
查看>>
【资料收集】林内域或者林间域之间的账户、计算机迁移
查看>>
更新windows SID工具,对于虚拟机复制很有用
查看>>
安装TOMCAT
查看>>
Linux网络命令
查看>>
-bash: lsof: command not found 解决方法
查看>>
《.NET应用架构设计:原则、模式与实践》新书博客--试读-2.1.2 设计原则实战
查看>>
大家技术探讨
查看>>
使用Myeclipse自带的xFire来实现WebService
查看>>
《UNIX环境高级编程》apue.h 头文件的问题
查看>>
系统分析师证书求挂靠,请联系qq 369681392
查看>>
ubuntu中root与user相互切换
查看>>
互联网络解剖
查看>>