难不难?
2025-06-29 20:48:21
发布于:重庆
13阅读
0回复
0点赞
你们觉得难不难?
全部评论 2
#include <bits/stdc++.h> using namespace std; int a[1005]; int main(){ int x,cnt = 0; cin >> x; while(x > 0){ cnt += x%10; x = x / 10; } cout << cnt; return 0; }
2025-06-29 来自 浙江
0easy
2025-06-29 来自 浙江
0
有帮助,赞一个