解 1635: 蓝桥杯算法训练VIP-整数平均值的方法之一 摘要:解题思路:从题目信息中可知:1.第一行表示第二行将要输入的元素的数量(n)   题解列表 2024年03月15日 0 点赞 0 评论 260 浏览 评分:0.0
因式分解,注意分解公式,找到规律 摘要:解题思路:一开始想的暴力求解,两个for循环,但是明显超时,因式分解后,想用数组存储来着,发现会超出数据类型;其实可以不用存储在数组中,反过来看,边计算边相加注意事项:数据类型参考代码:import …… 题解列表 2024年03月15日 0 点赞 0 评论 423 浏览 评分:0.0
c语言——分糖果 摘要:解题思路:注意事项: 注意最后一个不能加入到循环中去参考代码:#include<stdio.h>int panduan(int arr[],int n);int panduan(int arr[],i…… 题解列表 2024年03月15日 0 点赞 0 评论 349 浏览 评分:0.0
观察最长边最短边 摘要:解题思路:先顺题意写几个例子,观察一下,发现最长边除以二变成下一个纸张的最短边,最短边变成下一张纸张的最长边注意事项:用String s=sc.next();输入纸张代号,要知道是第几张要用字符串ch…… 题解列表 2024年03月15日 0 点赞 0 评论 260 浏览 评分:0.0
for循环输出等腰三角形 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class YBT2998 { public static void main(String[] a…… 题解列表 2024年03月16日 0 点赞 0 评论 427 浏览 评分:0.0
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 评论 495 浏览 评分:0.0
数据结构-八进制数 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) oct_num = oct(n) print(oct_…… 题解列表 2024年03月16日 0 点赞 0 评论 304 浏览 评分:0.0
1332: 津津的储蓄计划 摘要:参考代码:estimate = [int(input()) for i in range(12)] #预算 amount = 0 #零花钱 bank = [] flag = True…… 题解列表 2024年03月16日 0 点赞 0 评论 265 浏览 评分:0.0
【C语言题解/归并排序】编写题解 1674: 数据结构-有序线性表的有序合并 摘要:``` #include #include typedef struct Union{ int data; struct Union* next; }*node,Node; //…… 题解列表 2024年03月16日 0 点赞 0 评论 261 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-刷题统计 摘要:解题思路:先把能够算出整数个周期的week算出来,剩下的用求模和除法注意事项:参考代码:#include<stdio.h>int main(){ long long int a,b,n,week,nu…… 题解列表 2024年03月16日 0 点赞 0 评论 288 浏览 评分:0.0