Given a value V, if we want to make change for V cents, and we have infinite supply of each of C = { C1, C2, .. , Cm} valued coins, what is the minimu... ...
分类:
其他好文 时间:
2018-11-29 12:33:36
阅读次数:
229
.textShadowChange { animation: bilingbiling 2s ease infinite alternate; } @keyframes bilingbiling { from { text-shadow: 0 0 1px white, 0 0 2px white,.... ...
分类:
其他好文 时间:
2018-11-23 20:41:38
阅读次数:
200
效果预览 在线演示 按下右侧的“点击预览”按钮在当前页面预览,点击链接全屏预览。 https://codepen.io/zhang ou/pen/deNqdV 可交互视频教程 此视频是可以交互的,你可以随时暂停视频,编辑视频中的代码。 请用 chrome, safari, edge 打开观看。 ht ...
分类:
Web程序 时间:
2018-11-20 00:04:47
阅读次数:
666
题意: 给定一个数字串,每个位子都能向(i*i+1)%n的位子转移,输出路径上,字典序最大的,长度为n的串。 参考:https://www.cnblogs.com/mountaink/p/9541442.html 思路: BFS, 一个数字肯定是最高位越大,这个数字本身就越大,所以肯定第一位要取最大 ...
分类:
其他好文 时间:
2018-11-09 13:52:42
阅读次数:
147
On an N x N grid, each square grid[i][j] represents the elevation at that point (i,j). Now rain starts to fall. At time t, the depth of the water ever... ...
分类:
其他好文 时间:
2018-11-06 11:14:30
阅读次数:
108
"LINK1" "LINK2" 题目大意 给你一个n个点,m条边的有向图 有一种操作把所有到达这个点的边全部减小d,把所有从从这个点出发的边加上d 问最后是否可以让所有边的边权最小值最大 如果可以无限大,输出$Infinite$,如果不能让所有边权非负,输出$No\ solution$ 思路 最小值 ...
分类:
其他好文 时间:
2018-11-04 11:19:10
阅读次数:
118
problem1 link 假设第$i$种出现的次数为$n_{i}$,总个数为$m$,那么排列数为$T=\frac{m!}{\prod_{i=1}^{26}(n_{i}!)}$ 然后计算回文的个数,只需要考虑前一半,得到个数为$R$,那么答案为$\frac{R}{T}$. 为了防止数字太大导致越界, ...
分类:
其他好文 时间:
2018-11-03 21:06:35
阅读次数:
156
F - Detachment In a highly developed alien society, the habitats are almost infinite dimensional space. In the history of this planet,there is an old ...
分类:
其他好文 时间:
2018-10-28 12:51:24
阅读次数:
298