5 条题解
- 1
信息
- ID
- 613
- 时间
- 1000ms
- 内存
- 64MiB
- 难度
- 2
- 标签
- 递交数
- 199
- 已通过
- 120
- 上传者
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
cout << (n / 10 % 10 * 10 + n % 10) * 100 + n / 100;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
cout << "98";
return 0;
}
这道题只需要简单拆位即可,代码如下:
#include<bits/stdc++.h>
using namespace std;
int main(){
//定义变量n代表小明代的金额
int n;
//输入n
cin>>n;
//对n拆位求出前两位和后两位
int q=n/100;int h=n%100;
//输出结果
cout<<q+h*100;
return 0;
}
点个赞吧👀️