P1901发射站
算法:单调栈
代码:
#include<bits/stdc++.h>
using namespace std;
const int N=1000010;
int h[N],v[N],ans[N
本文介绍了洛谷P1901题目,主要使用了单调栈这一算法解决。通过详细解析代码,展示了如何利用单调栈进行有效的问题求解。
P1901发射站
算法:单调栈
代码:
#include<bits/stdc++.h>
using namespace std;
const int N=1000010;
int h[N],v[N],ans[N
599
1225
717