1296: 牛棚回声 摘要:解题思路:其实质是求两个字符串的最长相符长度注意事项:参考代码:#include <iostream>#include <cstring>using namespace std; int max_ma…… 题解列表 2024年03月10日 1 点赞 0 评论 411 浏览 评分:9.0
1290: 奶牛的锻炼 摘要:解题思路:注意事项:说实话没怎么看懂!参考代码:#include <iostream>using namespace std;int main(){ //d[i]代表第i分钟可以跑的路程 …… 题解列表 2024年03月10日 2 点赞 0 评论 448 浏览 评分:10.0
C++数组存储三角形简易动态规划版本 摘要:# 动态转移方程 ``` dfs[i][j] += max(dfs[i+1][j], dfs[i+1][j+1]); ``` # 参考图 { int n,m; scanf("%d%d",&n,&m); int a=0; …… 题解列表 2024年03月10日 0 点赞 0 评论 317 浏览 评分:9.9
过河卒JAVA---笨笨的方法 摘要:解题思路:注意事项:参考代码: import java.util.Scanner; // 导入Scanner类用于接收用户输入 public class Main { static …… 题解列表 2024年03月10日 0 点赞 0 评论 446 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:根据最大公约数和最小公倍数之积为两数之积这里原理,可以先求两者其中一个即可,故本题可利用求最大公约数间接得最小公倍数。注意事项:文字部分用于代码唯美,可删除用于提交作业/参考代码:#incl…… 题解列表 2024年03月10日 0 点赞 0 评论 294 浏览 评分:9.9
编写题解 2346: 信息学奥赛一本通T1433-愤怒的牛-二分 摘要:解题思路:使用二分详见代码注意事项:无参考代码:#include <bits/stdc++.h> using namespace std; int a[1000100]; int n,m; b…… 题解列表 2024年03月10日 1 点赞 0 评论 920 浏览 评分:9.9
不知道为什么其他语言错一个 摘要:参考代码:#include <stdio.h> #define MAX_N 3500 #define MAX_M 12880 int max(int a, int b) { r…… 题解列表 2024年03月10日 0 点赞 0 评论 329 浏览 评分:0.0
编写题解 2061: [STL训练]周瑜的反间计-二分 摘要:解题思路:为了防止超时,使用二分排序二分即可注意事项:注意每组数据后要输出空行YES和NO要大写首先要判断数据是否大于a[n]或小于a[1]l < r-1否则会死循环要判断a[l]和a[r]参考代码:…… 题解列表 2024年03月10日 0 点赞 0 评论 314 浏览 评分:8.0
蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:解题思路:注意事项:参考代码:#include <stdio.h>long long max(int a,int b){ if(a>b) return a; else return b;}int ma…… 题解列表 2024年03月10日 0 点赞 0 评论 278 浏览 评分:0.0