【编程入门】数字的处理和判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[10]; int i,we…… 题解列表 2024年04月17日 0 点赞 0 评论 375 浏览 评分:0.0
数字的处理与判断 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年04月18日 0 点赞 0 评论 183 浏览 评分:0.0
[编程入门]数字的处理与判断c++ 摘要:解题思路:判断五位数字在每个位置上是否存在注意事项:参考代码:/*题目描述给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出1…… 题解列表 2024年05月06日 2 点赞 0 评论 235 浏览 评分:0.0
运用字符串求解 摘要:解题思路: 用字符串的特点, 使输入的数字转化为字符串存储, 再用length函数限制输入位数, 最后用字符串下标输出注意事项: 参考代码:#include<iostream> usin…… 题解列表 2024年07月04日 2 点赞 0 评论 214 浏览 评分:0.0
题解 1009 数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c,d,e,x; int i = 0,j,k; scanf("%…… 题解列表 2024年07月07日 0 点赞 0 评论 107 浏览 评分:0.0
对于这个问题,直接用暴力算法,直接求解 摘要:参考代码:#include<stdio.h>int main(){ int a=0,d=0,n=0; scanf("%d",&a); d=a; int flag=1; while(flag==1){ …… 题解列表 2024年08月04日 0 点赞 0 评论 117 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include<string.h>int main(){ int x,count; …… 题解列表 2024年09月06日 0 点赞 0 评论 124 浏览 评分:0.0
数字的处理与判断(新手) 摘要:解题思路:我这个没有用数组的方法来写,非常简单,新手都看得懂,但是不是满分注意事项:希望大佬帮我调一下参考代码:import java.util.Scanner;public class Main {…… 题解列表 2024年09月07日 0 点赞 0 评论 250 浏览 评分:0.0
数字的处理与判断(字符串函数解法) 摘要:解题思路:利用字符串来存储数字,用strlen()函数得到数字长度;利用for循环将字符串从左到右遍历输出(空格);利用for循环将字符串从右到左遍历输出;注意事项:1、在开头添加库函数#includ…… 题解列表 2024年09月14日 0 点赞 0 评论 92 浏览 评分:0.0
数字的处理与判断 摘要:解题思路:转化为字符串问题注意事项:字符串反转,双指针参考代码:#include<bits/stdc++.h>using namespace std;string ver(string s){//反转…… 题解列表 2024年10月19日 0 点赞 0 评论 243 浏览 评分:0.0