1009: [编程入门]数字的处理与判断。不用数组 摘要:解题思路:通过乘方再取余获得最高位和去掉最高位、动态控制位宽注意事项:逐位输出用count(位数)作为判断表达式,别用 i(当前值) 参考代码:#include <stdio.h> #include…… 题解列表 2021年03月12日 0 点赞 0 评论 286 浏览 评分:0.0
来来来,看过来 摘要:解题思路:用字符串的知识点来写比较好写注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){int len;char s[5];scanf(…… 题解列表 2021年03月07日 0 点赞 0 评论 382 浏览 评分:9.9
编写题解 1009: [编程入门]数字的处理与判断 循环处理 摘要:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[6]; int len; scanf("%s",str); …… 题解列表 2021年03月05日 0 点赞 0 评论 325 浏览 评分:0.0
稍微有点长 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,x1,x2,n=0; int i; scanf("%d",&x); x1=x2=x; while(x…… 题解列表 2021年03月03日 0 点赞 1 评论 226 浏览 评分:0.0
利用了一下math, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,i,c,d; scanf("%d",&a); c=…… 题解列表 2021年03月03日 0 点赞 0 评论 335 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int x,l=0,n,s=0; scanf("%d",&x); whil…… 题解列表 2021年02月22日 0 点赞 0 评论 588 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int b,a,c,d,e,f,g,h,i; scanf("%d",&b); if(b<1…… 题解列表 2021年02月20日 0 点赞 0 评论 310 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(Python代码) 摘要:解题思路:字符串逆序输出可以采用索引的方法参考代码:string = input()print(len(string))for i in string: print(i, end=' &…… 题解列表 2021年02月18日 0 点赞 0 评论 347 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:参考代码:#include<stdio.h> #include<string.h>int main(void){ int i,j; char a[5]; scanf("%s",a); int …… 题解列表 2021年02月16日 0 点赞 0 评论 534 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[5],b,c=1,d,e,temp=10,f,i; scanf("%d",&b); e=b; whi…… 题解列表 2021年02月16日 0 点赞 0 评论 446 浏览 评分:9.9