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