题解 2108: 抢夺资源-编程题中的数学题 摘要:三年级数学就学了!!!经典得不能再经典的博弈论题数学题:拿棋子参考代码:#include <bits/stdc++.h> using namespace std; int main() { …… 题解列表 2024年03月10日 1 点赞 0 评论 442 浏览 评分:8.0
1296: 牛棚回声 摘要:解题思路:其实质是求两个字符串的最长相符长度注意事项:参考代码:#include <iostream>#include <cstring>using namespace std; int max_ma…… 题解列表 2024年03月10日 1 点赞 0 评论 601 浏览 评分:9.0
1290: 奶牛的锻炼 摘要:解题思路:注意事项:说实话没怎么看懂!参考代码:#include <iostream>using namespace std;int main(){ //d[i]代表第i分钟可以跑的路程 …… 题解列表 2024年03月10日 2 点赞 0 评论 672 浏览 评分:10.0
C++数组存储三角形简易动态规划版本 #动态转移方程```dfs[i][j]+=max(dfs[i+1][j],dfs[i+1][j+1]);```#参考图#代码```#include#includeusingnamesp 题解列表 2024年03月10日 0 点赞 0 评论 542 浏览 评分:9.9
编写题解 2346: 信息学奥赛一本通T1433-愤怒的牛-二分 摘要:解题思路:使用二分详见代码注意事项:无参考代码:#include <bits/stdc++.h> using namespace std; int a[1000100]; int n,m; b…… 题解列表 2024年03月10日 1 点赞 0 评论 1152 浏览 评分:9.9
编写题解 2061: [STL训练]周瑜的反间计-二分 摘要:解题思路:为了防止超时,使用二分排序二分即可注意事项:注意每组数据后要输出空行YES和NO要大写首先要判断数据是否大于a[n]或小于a[1]l < r-1否则会死循环要判断a[l]和a[r]参考代码:…… 题解列表 2024年03月10日 0 点赞 0 评论 540 浏览 评分:8.0
蓝桥杯2013年第四届真题-错误票据 摘要:这道题需要掌握的是读入方式#include<sstream>如果两个id重号,则必然排序在一起,断号则说明a[i]和a[i-1]之间缺了一个数#include <iostream> #include…… 题解列表 2024年03月10日 0 点赞 0 评论 764 浏览 评分:9.9
编写题解 1347: 八皇后(回溯) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <vector> using namespace std; // 检查当前位置是否可以放置棋子 bo…… 题解列表 2024年03月10日 0 点赞 0 评论 802 浏览 评分:2.0
苹果和虫子 摘要:#include<iostream>using namespace std;int main(){ int n,z,k; double x,y,a; cin>>n>>x>>y; a=y/x; k=0;…… 题解列表 2024年03月10日 0 点赞 0 评论 522 浏览 评分:0.0
1286: 最大配对 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip>#include<algorithm>using namespace …… 题解列表 2024年03月10日 1 点赞 0 评论 788 浏览 评分:9.9