5 条题解
- 1
信息
- ID
- 611
- 时间
- 1000ms
- 内存
- 64MiB
- 难度
- 1
- 标签
- 递交数
- 184
- 已通过
- 137
- 上传者
过辣!(脑残人士的欢呼)
string x;
cin>>x;
cout<<(x[2]-'0') + (x[0]-'0');
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n , a , b;
cin >> n;
a = n / 100;
b = n % 10;
n = a + b;
cout << n;
return 0;
}//已AC
A
#include <bits/stdc++.h>
using namespace std;
int x;
int main()
{
cin >> x;
cout << x / 100 + x % 10;
return 0;
}
#include <iostream>//hetao3097453
using namespace std;
int main()
{
int x;
cin >> x;
int a = x % 10;
int b = x / 100;
cout << a + b << endl;
return 0;
}