编写题解 2008: 函数重载练习-比较大小 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2024年03月31日 0 点赞 0 评论 618 浏览 评分:0.0
信息学奥赛一本通T1457-Power Strings(KMP算法的最基础,背背背!!!) 摘要:解题思路:char s[N];* 声明一个字符数组 `s`,用于存储输入的字符串。* **main 函数:** * 进入一个循环,不断读取字符串 `s`,直到遇到字符串 `.` 为止。 *…… 题解列表 2024年03月31日 0 点赞 0 评论 423 浏览 评分:9.9
2219: 蓝桥杯算法训练-大等于n的最小完全平方数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年03月31日 0 点赞 0 评论 229 浏览 评分:0.0
检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n;//判断n是不是质…… 题解列表 2024年03月31日 0 点赞 0 评论 236 浏览 评分:0.0
题解 1234: 检查一个数是否为质数 摘要:解题思路:循环+判断注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int main(){s…… 题解列表 2024年03月31日 0 点赞 0 评论 181 浏览 评分:0.0
python2885: 矩阵转置 摘要:解题思路:注意事项:参考代码:n, m = map(int, input().split()) A = [] for _ in range(n): A.append(list(map(i…… 题解列表 2024年03月31日 0 点赞 0 评论 585 浏览 评分:0.0
完全背包问题(C++) 摘要:解题思路:设dp[i][j]的含义是:在背包承重为j的前提下,从前i种物品中选能够得到的最大价值。 如何计算dp[i][j]呢?我们可以将它划分为以下若干部分: 选0个第i种物品:相当于不选第i种…… 题解列表 2024年03月31日 0 点赞 0 评论 198 浏览 评分:0.0
编写题解 1991: 面向对象设计之时间类 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;class Time{ private int h,m,s; public void Set(int sec…… 题解列表 2024年03月31日 0 点赞 0 评论 514 浏览 评分:0.0
暴力搜索(小白勿喷) 摘要:解题思路: 暴力不用带脑子,知道临界条件后,其他的都交给计算机就行注意事项:参考代码:#include <stdio.h>int n[10010]={0};int count;int max=0,mi…… 题解列表 2024年03月31日 0 点赞 0 评论 355 浏览 评分:0.0
2219: 蓝桥杯算法训练-大等于n的最小完全平方数 摘要:解题思路:bitch 张博维giegie 我爱你注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a; …… 题解列表 2024年03月31日 0 点赞 0 评论 224 浏览 评分:0.0