权值线段树+离散化+动态规划,时间复杂度O(nlogn) 摘要:解题思路:权值线段树+离散化+动态规划注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 100010#define m…… 题解列表 2022年08月23日 0 点赞 2 评论 1790 浏览 评分:8.5
左移右移 列表模拟(java) 摘要:解题思路:我们用两个list 记录一下左移的数 和 右移的数 但是 一个数可能重复移动多次 所以针对这种情况 开一个int数组记录一下最后一次这个数是左移还是右移 左移我们赋值为1 右移赋值为2 如果…… 题解列表 2022年10月01日 0 点赞 1 评论 1249 浏览 评分:8.5
简简单单看我的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int cdd[n]; for(int i=0;i<n;i++){…… 题解列表 2022年10月23日 0 点赞 1 评论 871 浏览 评分:8.5
(cC语言超简单版)奥运奖牌计数 摘要:解题思路:分别计算金银铜三种的数量,这里要用到2维数组注意事项:参考代码:#include<stdio.h>int main(){ int n; int a[100][3]; int…… 题解列表 2022年11月12日 0 点赞 0 评论 390 浏览 评分:8.5
1187: 假币问题 摘要:```cpp #include #include using namespace std; int main() { int n; cin>>n; while(…… 题解列表 2022年11月30日 1 点赞 0 评论 438 浏览 评分:8.5
飞机降落蓝桥杯 摘要:解题思路:// 错误点 // vis是否需要清0,不需要,最后回溯,完成清0// come use dw 关系// 主要到time取max(time,come[i]) ;; //如果time < co…… 题解列表 2023年05月03日 0 点赞 0 评论 1935 浏览 评分:8.5
鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double x,y,d,d1…… 题解列表 2023年11月12日 0 点赞 0 评论 436 浏览 评分:8.5
题解 2751: 超级玛丽游戏 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<" ********"<…… 题解列表 2023年12月05日 0 点赞 0 评论 199 浏览 评分:8.5
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:gets,puts,strlen()函数注意事项:因为在将b的值赋给a的过程中并非是所有元素都有赋值,并且末尾没有结束符,而puts()输出字符串时要遇到'\0’也就是字符结束符才停…… 题解列表 2024年02月08日 0 点赞 0 评论 557 浏览 评分:8.5
飞机降落-详细注释易看懂(暴力枚举) 摘要:解题思路:n限制小,选择暴力枚举,找到降落顺序,详细注释注意事项:参考代码:#include using namespace std; const int N = 10+20; struct pl…… 题解列表 2024年03月03日 0 点赞 2 评论 1163 浏览 评分:8.5