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