暴力解法,最大限度减低难度 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,ge; scanf("%d",&n);//遍历把每一位个位数字拿出来 for(in…… 题解列表 2023年03月06日 0 点赞 0 评论 272 浏览 评分:9.9
2818: 分离整数的各个数位 摘要:```cpp #include #include using namespace std; int main() { char a[10]; gets(a); …… 题解列表 2023年01月12日 0 点赞 0 评论 249 浏览 评分:9.9
用数组的方法——简单且粗暴 摘要:解题思路:换个思路,输入的是一串字符。注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[10]; int i;…… 题解列表 2022年12月31日 0 点赞 2 评论 381 浏览 评分:9.9
题目 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int x,y; x=n; …… 题解列表 2022年11月26日 0 点赞 0 评论 414 浏览 评分:9.9
用while循环,卡住终止点是更新后的a=0 ;不断用10求模,不断更新,循环输出 摘要:解题思路:1.用while循环,卡住终止点是更新后的a=02.不断用10求模,不断更新,循环输出参考代码:#include<iostream> using namespace std; int m…… 题解列表 2024年12月05日 3 点赞 0 评论 421 浏览 评分:10.0