1332: 津津的储蓄计划 摘要:参考代码:estimate = [int(input()) for i in range(12)] #预算 amount = 0 #零花钱 bank = [] flag = True …… 题解列表 2024年03月16日 0 点赞 0 评论 241 浏览 评分:0.0
【C语言题解/归并排序】编写题解 1674: 数据结构-有序线性表的有序合并 摘要:``` #include #include typedef struct Union{ int data; struct Union* next; }*node,Node; //…… 题解列表 2024年03月16日 0 点赞 0 评论 220 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-刷题统计 摘要:解题思路:先把能够算出整数个周期的week算出来,剩下的用求模和除法注意事项:参考代码:#include<stdio.h>int main(){ long long int a,b,n,week,nu…… 题解列表 2024年03月16日 0 点赞 0 评论 251 浏览 评分:0.0
2813: 药房管理 摘要:参考代码:m = int(input()) n = int(input()) arr = list(map(int, input().split())) k = 0 for i in rang…… 题解列表 2024年03月16日 0 点赞 0 评论 207 浏览 评分:0.0
【C语言题解】编写题解 3150: 蓝桥杯2023年第十四届省赛真题-冶炼金属 摘要:``` #include //最大值考虑:A个O只够生成B个X,A不能再多了 //Max=A/B //最大值只能向下取,不能向上取,三条记录合取最大值 //最小值考虑,V越小,B越多, /…… 题解列表 2024年03月16日 0 点赞 0 评论 179 浏览 评分:0.0
用并查集来求两个点是否连通(模板题) 摘要:我不知道为什么很多题解都有dfs写,直接用并查集不更快一点吗参考代码:import java.util.*;public class Main { static int[]p=new int[1010…… 题解列表 2024年03月16日 0 点赞 0 评论 279 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:参考代码:n = int(input()) arr = [] for i in range(1, n + 1): count = 1 for j in range(1, i):…… 题解列表 2024年03月16日 0 点赞 0 评论 195 浏览 评分:0.0
连续输出A+B for Input-Output Practice 摘要:解题思路:用数组存放,再输出注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,sum,b; int k=0; in…… 题解列表 2024年03月16日 0 点赞 0 评论 214 浏览 评分:0.0
蓝桥杯2017年第八届真题-发现环 摘要:解题思路:通过读题发现,只有一个环,那么就可以使用tarjan将这一个环缩成一个点,将这一个点中的点输出即可注意事项:参考代码:#include<bits/stdc++.h> using names…… 题解列表 2024年03月16日 0 点赞 0 评论 200 浏览 评分:0.0
C语言斐波那契数列 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int N; scanf("%d",&N); float s=…… 题解列表 2024年03月16日 0 点赞 0 评论 173 浏览 评分:0.0