1147: C语言训练-角谷猜想 摘要:参考代码:n = int(input()) while n != 1: n = int(n) if n % 2 == 0: print(f"{n}/2={int…… 题解列表 2024年03月16日 1 点赞 0 评论 443 浏览 评分:0.0
数据结构-八进制数 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) oct_num = oct(n) print(oct_…… 题解列表 2024年03月16日 0 点赞 0 评论 239 浏览 评分:0.0
1332: 津津的储蓄计划 摘要:参考代码:estimate = [int(input()) for i in range(12)] #预算 amount = 0 #零花钱 bank = [] flag = True …… 题解列表 2024年03月16日 0 点赞 0 评论 238 浏览 评分:0.0
【C语言题解/归并排序】编写题解 1674: 数据结构-有序线性表的有序合并 摘要:``` #include #include typedef struct Union{ int data; struct Union* next; }*node,Node; //…… 题解列表 2024年03月16日 0 点赞 0 评论 216 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-刷题统计 摘要:解题思路:先把能够算出整数个周期的week算出来,剩下的用求模和除法注意事项:参考代码:#include<stdio.h>int main(){ long long int a,b,n,week,nu…… 题解列表 2024年03月16日 0 点赞 0 评论 245 浏览 评分: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 评论 201 浏览 评分:0.0
【C语言题解】编写题解 3150: 蓝桥杯2023年第十四届省赛真题-冶炼金属 摘要:``` #include //最大值考虑:A个O只够生成B个X,A不能再多了 //Max=A/B //最大值只能向下取,不能向上取,三条记录合取最大值 //最小值考虑,V越小,B越多, /…… 题解列表 2024年03月16日 0 点赞 0 评论 173 浏览 评分:0.0
用并查集来求两个点是否连通(模板题) 摘要:我不知道为什么很多题解都有dfs写,直接用并查集不更快一点吗参考代码:import java.util.*;public class Main { static int[]p=new int[1010…… 题解列表 2024年03月16日 0 点赞 0 评论 273 浏览 评分: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 评论 189 浏览 评分: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 评论 207 浏览 评分:0.0