大整数乘法(模拟人的计算) 摘要:解题思路:模拟人平时的计算。注意事项:例如:789*123,那么结果最多为3+3=6,即6位。否则最后无进位,结果为5位。参考代码:#include#includeint main(){ ch…… 题解列表 2023年02月13日 0 点赞 0 评论 466 浏览 评分:6.0
与7无关的数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h> int main(){ int n,num=0 ; int i; int sum=0; int …… 题解列表 2023年02月13日 0 点赞 0 评论 420 浏览 评分:0.0
1124: C语言训练-大、小写问题-简单题解 摘要:```c #include #include int main() { char a[100]={'\0'}; gets(a); int i; for(…… 题解列表 2023年02月13日 0 点赞 0 评论 453 浏览 评分:9.9
蛇形矩阵c语言简短代码 摘要:解题思路:注意事项:参数比较多,但是思路比较简单参考代码:#include<stdio.h>int main(){ int a; int first=1;//first是每行第一个数 int b=0,…… 题解列表 2023年02月13日 0 点赞 0 评论 283 浏览 评分:0.0
年龄与疾病(C语言) 摘要:#include<stdio.h> void my_fun(int *p,int n) { double rate1,rate2,rate3,rate4; int a=0,b=0,c=0,…… 题解列表 2023年02月13日 0 点赞 0 评论 324 浏览 评分:7.2
超简单的思路。。 摘要:解题思路:利用每次输入药品数量和总药品数量比较,如果病人取走药品数量比总药品数量小 总数减去病人药品数,大于则是没有取到的人数 注意事项:参考代码:#include<stdio.h>int main(…… 题解列表 2023年02月13日 0 点赞 0 评论 610 浏览 评分:0.0
杨辉三角解题 摘要:解题思路:注意事项:参考代码:while True: try: def tri(row): List = [[1 for i in range(j)] for…… 题解列表 2023年02月13日 0 点赞 0 评论 312 浏览 评分:0.0
递归解法 有图片有真相 详细 摘要:思路:先把输入的数存到char数组里,用toCharArray可以把字符串变成字符数组, 比如字符串:"abcd"会变成{'a','b','c','d}的char类型数组 在方法里面:  摘要:解题思路: 显然这道题应该使用并查集,但普通的并查集只能合并数字,我们可以用map来代替数组,实现并查集的操作,直接用map把他们的父亲连接起来。 参考代码: ```cpp #…… 题解列表 2023年02月13日 0 点赞 0 评论 610 浏览 评分:9.9
级数求和....... 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int k,i; double s=.0 ; scanf("%d",&k) ; for(i=1;;i++){ …… 题解列表 2023年02月13日 0 点赞 0 评论 350 浏览 评分:0.0