1009: [编程入门]数字的处理与判断 摘要:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[5]; scanf("%s",str); int len…… 题解列表 2021年12月16日 0 点赞 0 评论 212 浏览 评分:0.0
C++[编程入门]数字的处理与判断 摘要:解题思路:用pow函数解决各自输出问题注意事项:参考代码:#include#includeusing namespace std;int main(){ int x; cin>>x; int i=0,…… 题解列表 2021年12月11日 0 点赞 0 评论 511 浏览 评分:9.9
1009: [编程入门]数字的处理与判断 摘要:参考代码:#include <stdio.h> #include <string.h> //C语言字符串头文件,strlen() 函数包含在此内 int main() …… 题解列表 2021年12月05日 0 点赞 0 评论 175 浏览 评分:0.0
来自欧亚的天才刘磊 摘要:解题思路:这都能不懂了?注意事项:带上你的脑子,和一颗专注且想要求知的心来吧参考代码:int t,n,k=0; scanf("%d",&n); t=n; int i; for(i=0;i<5;i++)…… 题解列表 2021年12月01日 0 点赞 1 评论 267 浏览 评分:9.9
暴力求解法 摘要:解题思路: 把题目分割成为三个问题,先求位数,再求每个权位上的数,然后正序带空格输出,逆序输出,暴力简单。注意事项:注意求解每个权位上的数通用公式是:每个权位上的数=该数/位数%10;参考代码:…… 题解列表 2021年11月28日 0 点赞 0 评论 332 浏览 评分:9.9
数字处理判断基础解法 摘要:解题思路:咱不就是不知道位数吗,哪咱开套,无限套,当然,这是个取巧的办法! 分离每一位数字是数学问题,这里还能利用循环进行分离每一位数字注意事项:这种方法并不是一个好方法,如果数据增大处理会异常…… 题解列表 2021年11月27日 0 点赞 0 评论 166 浏览 评分:0.0
数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int a,c=0,d=0; i…… 题解列表 2021年11月21日 0 点赞 0 评论 479 浏览 评分:8.9
数组储存各数字单元 摘要:解题思路:先求出输入数字的位数,然后用数组储存每一位数字,最后输出数组。注意事项:参考代码:#include<stdio.h>int main(){ int n,a,count=0; in…… 题解列表 2021年11月21日 0 点赞 0 评论 358 浏览 评分:0.0
1009,好懂的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c,d,e,f,g; scanf("%d",&a);…… 题解列表 2021年11月12日 0 点赞 0 评论 241 浏览 评分:0.0
简单易懂的写法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c,d,e; scanf("%d",&x); a=x%10; b=x/10%10; c=x/…… 题解列表 2021年11月10日 0 点赞 0 评论 156 浏览 评分:0.0