蓝桥杯算法提高VIP-排队打水问题 摘要:解题思路:将每个人的打水时间进行排序,根据水龙头个数进行分组,然后每次记录等待时间+打水时间即可。(由于每人打水时间不同,因此排序后分组可以确保x结束时y也正好结束或者y在x之前结束。其中,Tx < …… 题解列表 2021年12月01日 0 点赞 0 评论 799 浏览 评分: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 评论 602 浏览 评分:9.9
链表合并(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id; int score; student *nex…… 题解列表 2021年12月01日 0 点赞 0 评论 596 浏览 评分:9.9
蓝桥杯算法提高VIP-递归倒置字符数组 摘要:#include #include #include typedef char elemType; void reverse(char *str,int *i); void swap(void…… 题解列表 2021年12月01日 0 点赞 0 评论 340 浏览 评分:0.0
JAVA 输入很重要!!判断是其次 摘要:import java.util.Arrays; import java.util.Scanner; public class Main { public static void main…… 题解列表 2021年12月01日 0 点赞 0 评论 531 浏览 评分: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 评论 419 浏览 评分:0.0
1434: 蓝桥杯历届试题-回文数字 摘要: n = int(input().strip()) c =0 def huiwen(s): for i in range(len(s)//2): …… 题解列表 2021年12月01日 0 点赞 0 评论 592 浏览 评分:9.9
自定义函数 摘要:解题思路:求兄弟们看看哪里有问题,提示的是非法访问等注意事项:参考代码:public static void main(String[] args) { Scanner sc = new Scann…… 题解列表 2021年12月01日 0 点赞 0 评论 663 浏览 评分:0.0
猴子吃桃问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); int t=1; for(i=1;i…… 题解列表 2021年12月01日 0 点赞 2 评论 394 浏览 评分:9.9
找规律再求和 摘要:解题思路:自定义函数求注意事项:注意每次输出格式参考代码:#include<stdio.h>void factor(int n){ int i,j,sum=0; for(i=1;i<n;i…… 题解列表 2021年12月01日 0 点赞 0 评论 289 浏览 评分:0.0