简单明了,两个数组,C语言 摘要:参考代码:#include<stdio.h>int main(){ float sum=0.0,num[10],m[]={28.9,32.7,45.6,78.0,35.0,86.2,27.8,43.0…… 题解列表 2024年03月31日 0 点赞 0 评论 141 浏览 评分:0.0
2659: 蓝桥杯2022年真题-统计子矩阵(前缀和二维变一维) 摘要:```cpp #include using namespace std; const int N = 510 , M = 510; int s[N][M]; long long n ,…… 题解列表 2024年03月31日 1 点赞 0 评论 449 浏览 评分:0.0
题解 2773: 计算线段长度 摘要:C语言中 pow函数的声明:double pow(double x, double y) pow(x,y):x的y次幂 ```c #include #include int ma…… 题解列表 2024年03月31日 0 点赞 0 评论 167 浏览 评分:0.0
2666: 蓝桥杯2022年真题-爬树的甲壳虫(逆元及递推公式) 摘要:**这是一个数学问题** **大佬的递推公式推导过程:**https://blog.csdn.net/weixin_42430021/article/details/124397529 ```…… 题解列表 2024年03月31日 0 点赞 0 评论 623 浏览 评分:0.0
2219: 蓝桥杯算法训练-大等于n的最小完全平方数 摘要:解题思路:bitch 张博维giegie 我爱你注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a; …… 题解列表 2024年03月31日 0 点赞 0 评论 179 浏览 评分:0.0
暴力搜索(小白勿喷) 摘要:解题思路: 暴力不用带脑子,知道临界条件后,其他的都交给计算机就行注意事项:参考代码:#include <stdio.h>int n[10010]={0};int count;int max=0,mi…… 题解列表 2024年03月31日 0 点赞 0 评论 309 浏览 评分:0.0
编写题解 1991: 面向对象设计之时间类 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;class Time{ private int h,m,s; public void Set(int sec…… 题解列表 2024年03月31日 0 点赞 0 评论 465 浏览 评分:0.0
完全背包问题(C++) 摘要:解题思路:设dp[i][j]的含义是:在背包承重为j的前提下,从前i种物品中选能够得到的最大价值。 如何计算dp[i][j]呢?我们可以将它划分为以下若干部分: 选0个第i种物品:相当于不选第i种…… 题解列表 2024年03月31日 0 点赞 0 评论 151 浏览 评分:0.0
python2885: 矩阵转置 摘要:解题思路:注意事项:参考代码:n, m = map(int, input().split()) A = [] for _ in range(n): A.append(list(map(i…… 题解列表 2024年03月31日 0 点赞 0 评论 522 浏览 评分:0.0
题解 1234: 检查一个数是否为质数 摘要:解题思路:循环+判断注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int main(){s…… 题解列表 2024年03月31日 0 点赞 0 评论 141 浏览 评分:0.0