自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int f(char a[1000],int sz,char b[5]){ int i=…… 题解列表 2022年11月01日 0 点赞 0 评论 294 浏览 评分:9.9
aaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码#include <stdio.h>int main(){ int n,m,i,j,ii; scanf("%d%d",&n,&m); …… 题解列表 2022年11月01日 0 点赞 0 评论 375 浏览 评分:0.0
aaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,j,ii; int max=0,maxx=0; …… 题解列表 2022年11月01日 0 点赞 0 评论 336 浏览 评分:0.0
2766: 甲流疫情死亡率(C语言) 摘要:解题思路:【输入】两个整数,第一个为确诊数,第二个为死亡数。 【输出】甲流死亡率,以百分数形式输出,精确到小数点后3位。(过程)1.先定义两个整型变量a(确诊数)和b(死亡数…… 题解列表 2022年11月01日 0 点赞 0 评论 3302 浏览 评分:9.1
亲和数(超简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int f(int n) //求约数和 { int i,s=0…… 题解列表 2022年11月01日 0 点赞 0 评论 414 浏览 评分:9.9
简单易懂,小白必看 摘要:#include<stdio.h>#include<math.h>int main(){ int a,b,c,sum1=0,sum2=0; double sum3=0; scanf("%d%d%d",…… 题解列表 2022年11月02日 0 点赞 0 评论 239 浏览 评分:0.0
快速排序解题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; void QS(int a[],int l,int r) { if(l…… 题解列表 2022年11月02日 0 点赞 0 评论 244 浏览 评分:0.0
1009利用循环解决问题(coolboy小白) 摘要:解题思路:1):首先明确三个任务都是利用循环结构,2):第一个任务输出数字的位数:将数字不断除以10,计算可以几次,该次数即是这个数字的位数。eg:i=1;1234/10=123,i=2;123/10…… 题解列表 2022年11月02日 0 点赞 0 评论 301 浏览 评分:9.9
菜鸟的java循环解法 摘要:解题思路:两层循环嵌套,外层选出某一字符,里层带着此字符对字符串遍历,记录字符出现的次数,如为一则输出,跳出循环。注意事项:参考代码:import java.util.Scanner;public c…… 题解列表 2022年11月02日 0 点赞 1 评论 578 浏览 评分:9.9
函数求最大公约数和最小公倍数 含简单方法(C语言) 摘要:解题思路:一个定理:最大公约数和最小公倍数的乘积就是原来两个数的乘积,因此先计算出简单的最小公倍数,再利用定理就可以得到最小公倍数本题也包含一般做法,即如何正确的求出最大公约数注意事项:①变量名称尽量…… 题解列表 2022年11月02日 0 点赞 0 评论 581 浏览 评分:9.9