Pell数列非递归模式 摘要:解题思路:参照斐波那契数列的通项公式 f[i] = f[i-1] + f[i-2]类似的只需要在f2上*2最后f3%32376即可。注意事项:循环里面的计数要从2开始!参考代码:#include i…… 题解列表 2022年11月22日 0 点赞 0 评论 330 浏览 评分:8.4
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define S(a,b,c) (a+b+c)/2#define AREA(a,b,c) sqrt(s…… 题解列表 2022年11月26日 0 点赞 0 评论 1016 浏览 评分:8.4
买笔问题C语言 摘要:解题思路:以4为基准求余,余1,2,3,利用开关语句switch来控制。若买完x/4支4元钱的笔还剩1元,则4元钱的笔少买1支,换成1支5元笔即可;若买完x/4支4元钱的笔还剩2元,则4元钱的笔少买1…… 题解列表 2022年12月11日 0 点赞 1 评论 756 浏览 评分:8.4
简短易懂的 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char a; while ((a = getchar()) != EOF) { if (a == …… 题解列表 2022年12月12日 0 点赞 0 评论 222 浏览 评分:8.4
交换值(超简单) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d %d",b,…… 题解列表 2022年12月29日 0 点赞 1 评论 720 浏览 评分:8.4
编写题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,x,i,count=0,t; scanf("%d",&n); fo…… 题解列表 2023年01月01日 0 点赞 1 评论 590 浏览 评分:8.4
A+B Problem(python) 摘要:解题思路:怎么同时输入多个数字 用map注意事项:参考代码: a,b=map(int,input().split())print(a+b)…… 题解列表 2023年01月04日 0 点赞 1 评论 906 浏览 评分:8.4
【Python题解】蓝桥杯2022年第十三届省赛真题-刷题统计 摘要:参考代码:a, b, n = map(int, input().split()) finish_week = 5 * a + 2 * b # 计算一周的完成题量 weeks = n // …… 题解列表 2023年01月09日 0 点赞 1 评论 505 浏览 评分:8.4
1094: 字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): print(input(),end='\n\n')while True: t…… 题解列表 2023年01月14日 0 点赞 0 评论 560 浏览 评分:8.4
优质题解 蓝桥杯2022年第十三届省赛真题-李白打酒加强版(基于记忆数组的动态规划) 摘要:首先构建DFS搜索的函数:long long DFS(long long n, long long m, long long liquor)。这里n代表已经遇到店的次数,m代表已经遇到花的次数,liq…… 题解列表 2023年02月10日 0 点赞 0 评论 2270 浏览 评分:8.4