码迷,mamicode.com
首页 >  
搜索关键字:chosen problem solvi    ( 37771个结果
【CF468B】Two Sets
题目 题目链接:https://codeforces.com/problemset/problem/468/B 给出 \(n\) 个各不相同的数字,将它们分别放入 \(A\) 和 \(B\) 两个集合中,使它们满足: 若数字 \(x\) 在集合 \(A\) 中,那么数字 \(a-x\) 也在集合 \ ...
分类:其他好文   时间:2020-10-30 12:08:18    阅读次数:14
leetcode407 Trapping rain water II
use 3D version to calculate how much water the model can contain this problem need use dfs,from the edge part which mustn't be answer,for the edge can ...
分类:移动开发   时间:2020-10-29 10:06:29    阅读次数:25
回溯法4,排列问题,带条件
一.题源 https://www.lintcode.com/problem/permutations-ii/description https://leetcode-cn.com/problems/permutations-ii/ 二.代码分析 1 public class Solution { 2 ...
分类:其他好文   时间:2020-10-27 11:42:13    阅读次数:24
ACM_HDU_2045_不容易系列之(3)—— LELE的RPG难题
Problem Description 人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深沉,这可急坏了众多“Cole”(LELE的粉丝,即"可乐"),经过多方打探,某资深Cole终于知道了原因,原来,LELE最近研究起了著名的RPG难题: 有排成一行的n个方格,用红(Red)、粉(Pink)、 ...
分类:其他好文   时间:2020-10-26 11:29:27    阅读次数:26
Dockerfile Security Best Practice
Reference: [Dockerfile Security Best Practices] Container security is a broad problem space and there are many low hanging fruits one can harvest to m ...
分类:其他好文   时间:2020-10-24 11:48:16    阅读次数:37
Codeforces 1430G Yet Another DAG Problem 状压dp
Codeforces 1430G Yet Another DAG Problem 题意 $n$个点$m$条边的有向无环图,每条边有边权$w_i$,现在让你给每个点一个点权$a_v$,对于第$i$条边$(x,y)$,写上一个数字$b_i=a_x-a_y$并且$a_x>a_y$,使得$\sum_^w_i ...
分类:其他好文   时间:2020-10-22 22:21:13    阅读次数:29
算法模板之SPFA
Bellman-Ford能够处理带负权图的单源最短路问题。(带负劝环的图,无法求出单源最短路) Bellman-Ford的主要思想如下: ? 给定一张有向图,若对于图中的某一条边(x,y,z),有$dist[y]<=dist[x]+z$成立,则称该边满足三角不等式。若所有边都满足三角不等式,则dis ...
分类:编程语言   时间:2020-10-22 22:16:19    阅读次数:21
算法模板之Dijkstra
Dijkstra是求单源最短路的一种算法,它不能够处理含有负权边的图。本质是递推,依次求出距离起点最近的点。 C++ 板子 #include<bits/stdc++.h> #define ll long long /* 题目链接:https://www.luogu.com.cn/problem/P3 ...
分类:编程语言   时间:2020-10-22 22:15:58    阅读次数:24
Weed「线段树」
题目描述 后缀为 contest/140/problem/3 思路分析 考场上的确写了线段树,但是是针对中间那 $20$ 分打的…… 其实这道题的思想和线段树维护单调栈非常类似,(如果不明白建议去看一下这篇博客陶陶摘苹果)都是左右儿子之间互相和谐,只不过维护单调栈时左右儿子互相和谐的原因是因为要满足 ...
分类:其他好文   时间:2020-10-21 21:18:58    阅读次数:24
【YbtOJ#20067】糖果分配
题目 题目链接:http://noip.ybtoj.com.cn/contest/102/problem/1 思路 可以视作将 \(m\) 个位置分成 \(n\) 份,第 \(i\) 份上需要填上相同且在 \([l_i,r_i]\) 中的数的积的和。 所以可以设 \(f[i][j][k]\) 表示前 ...
分类:其他好文   时间:2020-10-19 23:02:49    阅读次数:21
37771条   上一页 1 ... 31 32 33 34 35 ... 3778 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!