2957连续分数求和代码 摘要:解题思路:注意事项:找分母的最小公倍数,求分子分母最大公约数。参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include…… 题解列表 2022年10月29日 0 点赞 0 评论 528 浏览 评分:2.0
角谷猜想题解(递归版) 摘要:解题思路: 当我看到这个题时,我的第一反应就是使用while循环或者使用函数递归来解决。但是我比较倾向于函数的递归。因为这个题就是对输入的数进行两种重复操作,这太符合递归…… 题解列表 2022年10月29日 0 点赞 0 评论 710 浏览 评分:9.9
蓝桥杯历届试题-蚂蚁感冒(最容易理解java) 摘要:解题思路:根据题意可知与感冒的蚂蚁接触就会感冒,我们可以不去考虑转向的问题,当感冒的蚂蚁遇到其他的蚂蚁直接穿过,直接去寻找会穿过哪些蚂蚁,当未感冒蚂蚁所处的位置在感冒蚂蚁的右边且头方向与感冒蚂蚁相反会…… 题解列表 2022年10月29日 0 点赞 0 评论 364 浏览 评分:9.9
蓝桥杯算法提高VIP-字符串比较 摘要:解题思路:比较注意事项:不是长度参考代码:#include <bits/stdc++.h>using namespace std;int main(){ios_base::sync_with_stdi…… 题解列表 2022年10月29日 0 点赞 0 评论 368 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项:参考代码:y,m,d = map(int,input().split())m1 = [1,3,5,7,8,10,12]m2 = [4,6,9,11]s = 0for i in ra…… 题解列表 2022年10月29日 0 点赞 1 评论 371 浏览 评分:9.9
使用pow函数求水仙花数 摘要:#include<stdio.h> #include<math.h> int main() { int ave, gae; int k1, k2, k3; scan…… 题解列表 2022年10月29日 0 点赞 0 评论 405 浏览 评分:9.9
【C】校门外的树合并重叠区间法 摘要:解题思路: 通过合并重叠区间方式计算,避免巨大数组注意事项: 总树木为长度+1 挖掘树数为初始点-末尾点+1设2个区间为a1~a2,b1~b2 判断重叠方法为b1<=a2 && b2>=a1参考代码:…… 题解列表 2022年10月29日 0 点赞 0 评论 491 浏览 评分:9.9
兰顿蚂蚁python代码,正确,小白水平可读懂 摘要:解题思路:注意事项:参考代码:#兰顿蚂蚁#输入m,n=map(int,input().split())l1=[]for i in range(m):#输入矩阵 l1.append(list(ma…… 题解列表 2022年10月29日 0 点赞 0 评论 301 浏览 评分:7.0
1012.字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char ch; int letter,number,blank,other; letter=number=b…… 题解列表 2022年10月29日 0 点赞 0 评论 302 浏览 评分:9.9
1093——字符逆序 摘要:参考代码:#include"stdio.h" #include"string.h" typedef char string[111]; string str; void fun(char *s…… 题解列表 2022年10月29日 0 点赞 0 评论 277 浏览 评分:0.0