非字符串方法,暴力求解 摘要:解题思路:一步一步来,先确定位数是多少,再求出余数等,直接看代码。注意事项:参考代码:#include<stdio.h>int func_a(int a){ int i = 0; //判断传入的数字是…… 题解列表 2022年10月07日 0 点赞 0 评论 232 浏览 评分:0.0
用算法a=f/10000; b=f/1000%10; c=f/100%10; d=f/10%10; e=f%10; 分别取个十百千万 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){int a,b,c,d,e,f;scanf("%d",&f); if(f>10000){ printf("5\n");}a…… 题解列表 2022年10月12日 0 点赞 0 评论 278 浏览 评分:0.0
(【C++】数组)数字的处理与判断——一种思路 摘要:**以下是我的代码** ```cpp #include using namespace std; int main() { int num,wei; cin>>num; if(n…… 题解列表 2022年10月16日 0 点赞 0 评论 296 浏览 评分:0.0
真 小白做法 摘要:解题思路:注意事项:参考代码:int x,i=0; scanf("%d",&x); int y=x; while(x!=0){ x/=10; i++; …… 题解列表 2022年10月21日 0 点赞 0 评论 220 浏览 评分:0.0
题解 1009: [编程入门]数字的处理与判断 摘要:此文章用来保存自己的初始代码参考代码:这是简单法,待学习数组之后会重新进行编辑#include<stdio.h> #include<math.h> int main() { int num;…… 题解列表 2022年11月02日 0 点赞 0 评论 181 浏览 评分:0.0
1009一行解(Python) 摘要:解题思路:注意事项:lambda N是定义一个匿名函数,lambda 函数名:expression(表达式)等价于 def 函数名(参数): 函数体 return 返回值不追求简短不必刻意使用lamb…… 题解列表 2022年11月04日 0 点赞 0 评论 192 浏览 评分:0.0
1009: [编程入门]数字的处理与判断(入门新手) 摘要:#include<stdio.h>int main(){ int a,b,c,d,e,f,t; scanf("%d",&a); b=a/10000; c=a/1000%10; d=a/100%10; …… 题解列表 2022年11月04日 0 点赞 0 评论 184 浏览 评分:0.0
数字的处理与判断(常规版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main() { long a,i=0,j,k,m,n,x; scanf("%d",…… 题解列表 2022年11月06日 0 点赞 0 评论 275 浏览 评分:0.0
最原始的求 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c,d,e,n; scanf("%d",&n); int res…… 题解列表 2022年11月07日 0 点赞 0 评论 198 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:解题思路:由于本人是一个新手,可能想的会有点复杂。我一开始的想法是:定义一个整形变量x并取值,并进行一系列运算,但是试验了多次后,发现很明显不行,因为一旦对x进行运算,x原有的值便会改变,无法进行下一…… 题解列表 2022年11月20日 0 点赞 0 评论 187 浏览 评分:0.0