- 博客(12)
- 收藏
- 关注
原创 线段树
线段树区间合并点击此处进入题目#include <bits/stdc++.h>#define int long longusing namespace std;int n,m;const int N = 50010;int temp[N];struct node{ int l,r,lmax,rmax,tmax;}tr[N * 4];void push...
2020-05-07 23:20:02 71
原创 P4568 [JLOI2011]飞行路线 ———— DP思路解法
点击此处进入题目首先声明 DP解法并不是我想出来的 而是看到题解才明白分层图可以用DP解决 其实好好想一下 Djikstar 的本质无非也就是 BFS + DP ;后续等我学会了分层图 我也会用分层图的方法来解决这道题目OK 闲话少叙 先说一下这个题的解题思路因为Djkstar 堆优化的版本中 存在一个 distance[j] = t.x+ w[i]; 而且是在前者大于后者的条件下 这...
2020-03-18 00:04:16 187
原创 Codeforces Round #623 (Div. 2)
## **A. Fast Food Restaurant** time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard outputTired of boring office work, Denis...
2020-02-24 14:40:11 200
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人