3 条题解
- 1
信息
- ID
- 387
- 时间
- 1000ms
- 内存
- 16MiB
- 难度
- 1
- 标签
- 递交数
- 38
- 已通过
- 31
- 上传者
#include<bits/stdc++.h> using namespace std; int main() { int s,ge,shi,bai,qian; cin>>s; ge=s%10; shi=s%100/10; bai=s/100%10; qian=s/1000; cout<<ge+shi+bai+qian; return 0; }
#include<iostream>
using namespace std;
int main()
{
int x;
cin>>x;
cout<<x-x/1000-x%1000/100*10-x%1000%100/10*100-x%1000%100%10*1000;
}
乱写!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
看我的!