求最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m, n,min=1,max=1,i; cin >…… 题解列表 2024年02月08日 0 点赞 0 评论 1009 浏览 评分:0.0
C++速度功成 解题思路:将输入的数字串当作数组,利用库函数string,直接获得数组长度,然后for循环遍历数组每一个位置上的数字,输出;法二:构建一空数组,利用for循环将输入的数字串逐个拆解,从个位数依次填入数组中,以if(n==0)break;为for循环终止条件, 题解列表 2024年03月13日 0 点赞 0 评论 608 浏览 评分:0.0
C语言 注意范围 摘要:解题思路:注意事项:参考代码:#include <stdio.h> //头文件#include <string.h>int main() //一个文件的开头{ char n[6]; gets(n);…… 题解列表 2024年03月16日 0 点赞 0 评论 784 浏览 评分:0.0
【编程入门】数字的处理和判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[10]; int i,we…… 题解列表 2024年04月17日 0 点赞 0 评论 747 浏览 评分:0.0
数字的处理与判断 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年04月18日 0 点赞 0 评论 635 浏览 评分:0.0
[编程入门]数字的处理与判断c++ 解题思路:判断五位数字在每个位置上是否存在注意事项:参考代码:/*题目描述给出一个不多于5位的整数,要求1、求出它是几位数2、分别输出每一位数字3、按逆序输出各位数字,例如原数为321,应输出123输入格式一个不大于5位的数字输出格式三行第一行位数第二行用空格分开的每个数字, 题解列表 2024年05月06日 2 点赞 0 评论 735 浏览 评分:0.0
运用字符串求解 摘要:解题思路: 用字符串的特点, 使输入的数字转化为字符串存储, 再用length函数限制输入位数, 最后用字符串下标输出注意事项: 参考代码:#include<iostream> usin…… 题解列表 2024年07月04日 2 点赞 0 评论 631 浏览 评分: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 评论 436 浏览 评分: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 评论 474 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include<string.h>int main(){ int x,count; …… 题解列表 2024年09月06日 0 点赞 0 评论 430 浏览 评分:0.0