码迷,mamicode.com
首页 >  
搜索关键字:15-puzzle problem    ( 37568个结果
LeetCode | 1387. Sort Integers by The Power Value将整数按权重排序【Python】
LeetCode 1387. Sort Integers by The Power Value将整数按权重排序【Medium】【Python】【排序】 Problem "LeetCode" The power of an integer is defined as the number of ste ...
分类:编程语言   时间:2020-03-22 10:23:56    阅读次数:87
PAT A1035 Password
题目描述: To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing pass ...
分类:其他好文   时间:2020-03-21 23:48:04    阅读次数:134
365. 水壶问题
https://leetcode cn.com/problems/water and jug problem/ BFS+hash 原贴讲解:https://leetcode cn.com/problems/water and jug problem/solution/tu jie bfs c jie ...
分类:其他好文   时间:2020-03-21 21:53:01    阅读次数:77
[题解] LuoguP4284 [SHOI2014]概率充电器
"https://www.luogu.com.cn/problem/P4284" 比较套路的概率题? 由期望的线性性可以把每个点拆开来,然后答案就是每个点通电的概率之和。 通电的概率并不怎么好算,我们可以算点$u$不通电的概率$f[u]$,然后答案就是 $$\sum\limits_{i=1}^n 1 ...
分类:其他好文   时间:2020-03-21 21:44:13    阅读次数:76
bzoj 4407 于神之怒加强版
LINK: "于神之怒加强版" 这道题用到了几个小技巧。 T组数据,$T\leq 2000$ $n,m\leq 5000000$ 简单推导一下可以得出$\sum_{w=1}^n\sum_{d|w}\mu(d)(\frac{w}{d})^k\frac{n}{w}\frac{m}{w}$ 整除分块考虑前 ...
分类:其他好文   时间:2020-03-21 21:35:10    阅读次数:58
Supermarket POJ - 1456
并查集+贪心 https://vjudge.net/contest/362147#problem/C #include <iostream> #include <cstdio> #include <cstring> #include <limits> #include <algorithm> #de ...
分类:其他好文   时间:2020-03-21 20:56:28    阅读次数:60
EOJ Monthly 2020.3 A.迷宫 (二分+最大流)
题目链接 https://acm.ecnu.edu.cn/contest/255/problem/A/ 题意 给出有向图,有$m$个人在顶点$S$,每天晚上你可以控制他们呆在原地不动或选择移动到下一个顶点(从一个顶点到相邻顶点恰好需要花费一个晚上时间),当然,你可以控制每一个青年有不一样的选择。每条 ...
分类:其他好文   时间:2020-03-21 20:52:43    阅读次数:97
Meta-Learning: Learning to Learn Fast
Define the Meta-Learning Problem A Simple View Training in the Same Way as Testing Learner and Meta-Learner Common Approaches Metric-Based Convolution ...
分类:Web程序   时间:2020-03-21 18:17:04    阅读次数:143
D - Notepad CodeForces - 17D (欧拉降幂)
题目链接:http://codeforces.com/problemset/problem/17/D Nick is attracted by everything unconventional. He doesn't like decimal number system any more, and ...
分类:其他好文   时间:2020-03-21 16:23:31    阅读次数:65
P3467(矩形覆盖问题)
描述:https://www.luogu.com.cn/problem/P3467 1.考虑如果整个建筑物链是等高的,一张高为链高,宽为整个建筑物宽的海报即可完全覆盖; 2.若有两个不等高的元素组成建筑物链,那么一定需要两张; 3.因为题目要求海报不可超出建筑物链,那么我们即可用单调栈维护:初始海报 ...
分类:其他好文   时间:2020-03-21 13:11:06    阅读次数:63
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!