当前位置:网站首页>【码蹄集新手村600题】不通过字符数组来合并俩个数字
【码蹄集新手村600题】不通过字符数组来合并俩个数字
2022-07-31 16:46:00 【Sandm *】
题目链接:
解题思路:

参考代码:
#include<bits/stdc++.h>
using namespace std;
int main( )
{
int data1 = 0,data2 = 0;
cin >> data1;
cin >> data2;
int end = (data2%10)*1000+(data1/10)*100+(data2/10)*10+data1%10;
cout << end;
return 0;
}边栏推荐
- 仿生毛毛虫机器人源码
- MySQL multi-table union query
- How to switch remote server in gerrit
- [7.28] Code Source - [Fence Painting] [Appropriate Pairs (Data Enhanced Version)]
- 【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
- C language - function
- 【luogu P8326】Fliper (Graph Theory) (Construction) (Eulerian Circuit)
- Baidu cloud web speed playback (is there any website available)
- 多主复制下处理写冲突(3)-收敛至一致的状态及自定义冲突解决逻辑
- flutter设置statusbar状态栏的背景颜色和 APP(AppBar)内部颜色一致方法。
猜你喜欢

【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】

Three aspects of Ali: How to solve the problem of MQ message loss, duplication and backlog?

Golang go-redis cluster模式下不断创建新连接,效率下降问题解决

Design and Implementation of Compiler Based on C Language

T - sne + data visualization parts of the network parameters

TestCafe之如何进行调试

【网络通信三】研华网关Modbus服务设置

动态规划之线性dp(上)

【C语言】LeetCode27.移除元素

Graham‘s Scan法求解凸包问题
随机推荐
动态规划之线性dp(下)
C language - function
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none 失败
字符指针赋值[通俗易懂]
6. 使用 Postman 工具高效管理和测试 SAP ABAP OData 服务
Masterless replication system (1) - write DB when node fails
flutter设置statusbar状态栏的背景颜色和 APP(AppBar)内部颜色一致方法。
牛客网刷题(三)
How to switch remote server in gerrit
T - sne + data visualization parts of the network parameters
Flutter gets the height of the status bar statusbar
[TypeScript]OOP
jeecg主从数据库读写分离配置「建议收藏」
2022年整理LeetCode最新刷题攻略分享(附中文详细题解)
如何识别假爬虫?
Golang——从入门到放弃
flyway的快速入门教程
牛客网刷题(四)
【7.28】代码源 - 【Fence Painting】【合适数对(数据加强版)】
GP 6总体架构学习笔记