简单做法 无脑按行打印 摘要:解题思路:按行打印注意事项:别遗漏输入为0的情况参考代码:import java.util.Scanner;public class Main { public static void main(St…… 题解列表 2022年04月04日 0 点赞 0 评论 299 浏览 评分:9.9
完美的骗过ac 摘要:解题思路:创建字典,因为for循环次数无法遍历完,所以使用try——except 注意事项: d 的值参考代码:while True: try: li = "ABC…… 题解列表 2022年04月04日 0 点赞 0 评论 1140 浏览 评分:9.9
蓝桥杯2020年第十一届省赛真题-成绩统计C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main() { double n,m,i,a=0,b=0; int x,y; scan…… 题解列表 2022年04月04日 0 点赞 0 评论 655 浏览 评分:9.9
完全二叉树的权值 前缀和思想,详细注释 摘要:**利用前缀和思想 重点需要考虑到最后一层可能不满的情况orz** 代码如下: ```cpp #include #include using namespace std; int a[1…… 题解列表 2022年04月04日 0 点赞 0 评论 393 浏览 评分:9.9
1847: 字符串中间和后边*号删除 摘要:解题思路:直接看注释吧注意事项:参考代码:#include<string.h> #include<stdio.h> int fun(char *a) { int i=0;//代表…… 题解列表 2022年04月04日 0 点赞 0 评论 352 浏览 评分:9.9
蓝桥杯2018年第九届真题-耐摔指数 摘要:```cpp //打表发现后面可以利用前面——>动态规划 //由手机部数和层数两个变量决定测试次数结果——>动态规划 #include #include using namespac…… 题解列表 2022年04月05日 0 点赞 0 评论 682 浏览 评分:9.9
最大值最小值解连号区间 摘要:### 注意事项 - 这些数是1到N(没有用) - 区间[L, R] 里的所有元素(即此排列的第L个到第R个元素)递增排序后能得到一个长度为R-L+1的“连续”数列,则称这个区间连号区间。 …… 题解列表 2022年04月05日 0 点赞 0 评论 633 浏览 评分:9.9
阶乘幂数列 摘要:#include <stdio.h> #include <math.h> int main() { float x,n,k=1; double s=0; scanf("%f%f",&…… 题解列表 2022年04月05日 0 点赞 0 评论 632 浏览 评分:9.9
蓝桥杯2020年第十一届省赛真题-数字三角形 摘要:解题思路:注意事项:参考代码:#include <cstdio> #include <algorithm> int n,ans=0; int a[101][101]; int dp[101…… 题解列表 2022年04月05日 0 点赞 0 评论 486 浏览 评分:9.9
分段函数求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if (x<10) if (x<1…… 题解列表 2022年04月05日 0 点赞 0 评论 1060 浏览 评分:9.9