还是用列表-斐波纳契数列 摘要:解题思路:生成列表,打印元素注意事项:参考代码:N = int(input())list = [1,1]for i in range(N-2): list.append(list[-1]+lis…… 题解列表 2021年12月02日 0 点赞 0 评论 424 浏览 评分:0.0
希望可以帮到你 摘要:解题思路:用打擂台的方式来替换注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,j,t; for(i=0;i<9;i++) …… 题解列表 2021年12月02日 0 点赞 0 评论 349 浏览 评分:0.0
蓝桥杯算法提高VIP-排队打水问题 摘要:解题思路:将每个人的打水时间进行排序,根据水龙头个数进行分组,然后每次记录等待时间+打水时间即可。(由于每人打水时间不同,因此排序后分组可以确保x结束时y也正好结束或者y在x之前结束。其中,Tx < …… 题解列表 2021年12月01日 0 点赞 0 评论 783 浏览 评分:9.9
编写题解 1513: 蓝桥杯算法提高VIP-大数加法(C语言--带注释) 摘要:解题思路:注意事项:参考代码:#include#include//比较大小函数 int max(int a,int b){ return a > b ? a : b;}int main()…… 题解列表 2021年12月01日 0 点赞 0 评论 589 浏览 评分:9.9
链表合并(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id; int score; student *nex…… 题解列表 2021年12月01日 0 点赞 0 评论 590 浏览 评分:9.9
蓝桥杯算法提高VIP-递归倒置字符数组 摘要:#include #include #include typedef char elemType; void reverse(char *str,int *i); void swap(void…… 题解列表 2021年12月01日 0 点赞 0 评论 335 浏览 评分:0.0
JAVA 输入很重要!!判断是其次 摘要:import java.util.Arrays; import java.util.Scanner; public class Main { public static void main…… 题解列表 2021年12月01日 0 点赞 0 评论 519 浏览 评分:0.0
编写题解 1025: [编程入门]数组插入处理C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,j; for(i=0;i<9;i++) { scanf("%d…… 题解列表 2021年12月01日 0 点赞 0 评论 415 浏览 评分:0.0
1434: 蓝桥杯历届试题-回文数字 摘要: n = int(input().strip()) c =0 def huiwen(s): for i in range(len(s)//2): …… 题解列表 2021年12月01日 0 点赞 0 评论 585 浏览 评分:9.9
自定义函数 摘要:解题思路:求兄弟们看看哪里有问题,提示的是非法访问等注意事项:参考代码:public static void main(String[] args) { Scanner sc = new Scann…… 题解列表 2021年12月01日 0 点赞 0 评论 656 浏览 评分:0.0