想了好久,差点放弃了 摘要:解题思路:首先对输入进行转化,将多个一转化为一个负数存放。例:1 1 1 1 3 1 1 1 1 1 5 6输入的时候是e数组,实际上用的ne数组里的值就是-4 3 -5 5 6因为本题要是有个大的区…… 题解列表 2022年03月31日 0 点赞 6 评论 1199 浏览 评分:9.8
(公式+upper_bound())(100%正确) 摘要:[题目链接](https://www.dotcpp.com/oj/problem2618.html) 这题的主要难度在于求数据规模太大,暴力求解前缀和肯定是会超时的,但是可以明显看出最终…… 题解列表 2022年03月31日 1 点赞 1 评论 769 浏览 评分:9.0
编写题解 1216: 成绩转换 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n; while(cin>>n){ …… 题解列表 2022年03月31日 0 点赞 0 评论 188 浏览 评分:0.0
蓝桥杯VIP算法训练-轨道炮-看完秒懂的(c++map) 摘要:解题思路:轨道炮:看题找算法:典型map题目思路:1.首先横向射和纵向射是分立的问题,可以分别解决然后取最大值。2.单个方向上问题就是:给定初始位置和速度,求一个时间和位置使得在这个时间和位置上重合的…… 题解列表 2022年03月31日 0 点赞 3 评论 803 浏览 评分:3.5
编写题解 1211: 平方和与立方和 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>#include<math.h>using namespace std;void func(int m…… 题解列表 2022年03月31日 0 点赞 0 评论 328 浏览 评分:0.0
编写题解 1210: 小明A+B 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ int a,b; …… 题解列表 2022年03月31日 0 点赞 0 评论 224 浏览 评分:0.0
编写题解 1206: 字符串问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; c…… 题解列表 2022年03月31日 0 点赞 0 评论 221 浏览 评分:0.0
[AC代码] 自适应辛普森求积分 摘要:解题思路:用自适应辛普森求多个圆在矩形ab内的并面积注意事项:参考:www.luogu.com.cn/problem/P4525www.luogu.com.cn/problem/SP8073将超出矩形…… 题解列表 2022年03月31日 0 点赞 0 评论 809 浏览 评分:8.2
史上最强数学题解(公倍数) 摘要:解题思路:公倍数之后的全部情况都可以通过两数之差来实现,因此只需要关注公倍数之前的情况即可。公倍数可以全部用两数相加实现,在此基础上减掉另外一个数后,两数之差便无法弥补缺口。注意事项:参考代码:#in…… 题解列表 2022年03月31日 0 点赞 0 评论 379 浏览 评分:0.0
蓝桥杯算法提高VIP-聪明的美食家-最大不上升子序列(!不上升) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>using namespace std;int a[10…… 题解列表 2022年03月31日 0 点赞 0 评论 279 浏览 评分:9.9