1 条题解
- 
  0
其实这道题可以使用暴力枚举
因为他的数据有条规律:
输入一个n
n可以拆分成个位和十位
然后相加起来就可以了
废话不多说
上代码
/***************************************** 备注: ******************************************/ #include <queue> #include <math.h> #include <stack> #include <stdio.h> #include <iostream> #include <vector> #include <iomanip> #include <string.h> #include <algorithm> using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int main() { int n; cin>>n; int ge=n%10; int shi=n/10%10; cout<<ge+shi; return 0; } 
信息
- ID
 - 547
 - 时间
 - 1000ms
 - 内存
 - 256MiB
 - 难度
 - 5
 - 标签
 - 递交数
 - 65
 - 已通过
 - 26
 - 上传者