当前位置:网站首页>【码蹄集新手村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;
}边栏推荐
- 2022年必读的12本机器学习书籍推荐
- Automated testing - web automation - first acquaintance with selenium
- Graham‘s Scan法求解凸包问题
- GP 6总体架构学习笔记
- 智能垃圾桶(九)——震动传感器(树莓派pico实现)
- Small program: Matlab solves differential equations "recommended collection"
- 【源码解析】BeanFactory和FactoryBean
- [Source code analysis] BeanFactory and FactoryBean
- adb shell error error: device unauthorized
- i.MX6ULL驱动开发 | 33 - NXP原厂网络设备驱动浅读(LAN8720 PHY)
猜你喜欢

Premiere Pro 2022 for (pr 2022)v22.5.0

【7.29】代码源 - 【排列】【石子游戏 II】【Cow and Snacks】【最小生成数】【数列】

Graham‘s Scan法求解凸包问题

仿生毛毛虫机器人源码

华为手机一键开启“维修模式”隐藏所有数据,让手机隐私更加安全

Kotlin协程:续体、续体拦截器、调度器

复杂高维医学数据挖掘与疾病风险分类研究

利用PHP开发具有注册、登陆、文件上传、发布动态功能的网站

你辛辛苦苦写的文章可能不是你的原创

Intelligent bin (9) - vibration sensor (raspberries pie pico implementation)
随机推荐
i.MX6ULL driver development | 33 - NXP original network device driver reading (LAN8720 PHY)
AcWing 1282. 搜索关键词 题解((AC自动机)Trie+KMP)+bfs)
go记录之——slice
动态规划(一)
【Yugong Series】July 2022 Go Teaching Course 022-Dictionary of Go Containers
Masterless replication system (2) - read and write quorum
C语言-函数
Go1.18升级功能 - 模糊测试Fuzz 从零开始Go语言
Design and Implementation of Compiler Based on C Language
flyway的快速入门教程
gerrit中如何切换远程服务器
[TypeScript] OOP
【愚公系列】2022年07月 Go教学课程 022-Go容器之字典
The arm button controls the flashing of the led light (embedded button experiment report)
Foreign media right, apple on May be true in inventory
研发过程中的文档管理与工具
多主复制下处理写冲突(1)-同步与异步冲突检测及避免冲突
Premiere Pro 2022 for (pr 2022)v22.5.0
How Redis handles concurrent access
Automated testing - web automation - first acquaintance with selenium