题目真的好长但是意思很简单 89.加密 (15分)C时间限制:3 毫秒 | C内存限制:3000 Kb题目内容:一种Playfair密码变种加密方法如下:首先选择一个密钥单词(称为pair)(字母不重复,且都为小写字母),然后与字母表中其他字母一起填入至一个5x5的方阵中,填入方法如下:1.首先按行 ...
分类:
其他好文 时间:
2019-04-21 11:37:14
阅读次数:
213
1010 Radix (25 分) Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal n ...
分类:
其他好文 时间:
2019-04-20 09:22:01
阅读次数:
126
迪杰斯特拉算法百度百科定义:传送门 迪杰斯特拉算法用来计算一个点到其他所有点的最短路径,是一种时间复杂度相对比较优秀的算法 O(n2)(相对于Floyd算法来说) 是一种单源最短路径算法,但是它并不能处理负边权的情况 板子代码: ...
分类:
编程语言 时间:
2019-04-18 21:54:36
阅读次数:
249
app('redis')->connection('default')->funnel('key000') // 每个资源最大锁定10秒自动过期,只有60个资源(并发),在3秒内获取不到锁抛出异常 ->releaseAfter(10)->limit(60)->block(3) ->then(func... ...
分类:
其他好文 时间:
2019-04-17 16:35:11
阅读次数:
122
链接:http://acm.hdu.edu.cn/showproblem.php?pid=5877 题面; Weak Pair Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Tota ...
分类:
其他好文 时间:
2019-04-16 21:45:31
阅读次数:
154
There are nn cities and mm roads in Berland. Each road connects a pair of cities. The roads in Berland are one-way. What is the minimum number of new ...
H - 三角形 4.1 Description A lattice point is an ordered pair (x,y) where x and y are both integers. Given the coordinates of the vertices of a triangle( ...
分类:
其他好文 时间:
2019-04-16 01:34:05
阅读次数:
193
这个题貌似是过的最少的? smeow一眼给出了一个单log的算法orz 首先求出x和y的lca, x和c的lca,y和c的lca, 然后分类讨论以下就行了 实际上只有三种情况 cpp include include include include include define ll long lon ...
分类:
其他好文 时间:
2019-04-14 19:21:31
阅读次数:
173
D - Handstand Time Limit: 2 sec / Memory Limit: 1024 MB Score : 400400 points Problem Statement NN people are arranged in a row from left to right. Yo ...
分类:
其他好文 时间:
2019-04-14 14:22:07
阅读次数:
239
%%%暴搜出奇迹%%%@SiriusRen 其实我刚开始题读错了,才导致我写图论。。。 spfa跑最短路,开一个node记录状态(pair当然滋磁):所在楼层和槽的位置 以层数为1,槽在0的位置 为初始状态并进队,向每一个合法位置扩展,跑spfa,直到收敛。 2019.04.11 ...
分类:
其他好文 时间:
2019-04-11 01:28:05
阅读次数:
130