博客园 首页 私信博主 显示目录 隐藏目录 管理
摘要: 首先我们需要区分加密和认证这两个基本概念。 加密是将数据资料加密,使得非法用户即使取得加密过的资料,也无法获取正确的资料内容,所以数据加密可以保护数据,防止监听攻击。其重点在于数据的安全性。身份认证是用来判断某个身份的真实性,确认身份后,系统才可以依不同的身份给予不同的权限。其重点在于用户的真实性。 阅读全文
posted @ 2019-09-20 23:07 Brave_WTZ 阅读(6071) 评论(2) 推荐(1) 编辑
摘要: A role-playing game (RPG and sometimes roleplaying game) is a game in which players assume the roles of characters in a fictional setting. Players tak 阅读全文
posted @ 2019-08-20 19:40 Brave_WTZ 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 题意:应该比较好理解 分析:这道题可以有两种方法:一种就是简单dp;还有一种就是直接查找。 第一种方法:我们假设dp[i][j]代表从i->j位置满足等间距的数目的个数,那么我们可以在i之前设置位置l,来寻找a[j]-a[i[==a[i]-a[l]; AC代码: 第二种方法:看了dalao的代码,感 阅读全文
posted @ 2019-08-18 15:40 Brave_WTZ 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 分析:比较容易想到的是用两个容器分别存放需要'1'变为'0'的值以及需要'0'变为'1'的值,1->0需要从大到小排序,0->1的需要从小到大排序进行贪心选择 但是如果存在这样的位置(变化前后都为1),我们就要枚举一开始把哪些这样的位置进行转换,显然是价值越大的越优先转换,因为这样代价小。 阅读全文
posted @ 2019-08-18 10:24 Brave_WTZ 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 先了解一下KM算法: 在满天飞的KM讲解中,感觉这篇博客讲的是真的好!!! 转自https://www.cnblogs.com/logosG/p/logos.html 如果每个员工做每件工作的效率各不相同,我们如何得到一个最优匹配使得整个公司的工作效率最大呢? 这种问题被称为带权二分图的最优匹配问题 阅读全文
posted @ 2019-08-16 20:33 Brave_WTZ 阅读(1688) 评论(0) 推荐(0) 编辑
摘要: After this year’s college-entrance exam, the teacher did a survey in his class on students’ score. There are n students in the class. The students did 阅读全文
posted @ 2019-08-16 16:42 Brave_WTZ 阅读(217) 评论(0) 推荐(0) 编辑
摘要: RPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可是,过山车的每一排只有两个座位,而且还有条不成文的规矩,就是每个女生必须找个个男生做partner和她同坐。但是,每个女孩都有各自的想法,举个例子把,Rabbit只愿意和XHD或PQK做partner,Grass只愿意和l 阅读全文
posted @ 2019-08-16 16:11 Brave_WTZ 阅读(212) 评论(0) 推荐(0) 编辑
摘要: A password locker with N digits, each digit can be rotated to 0-9 circularly. You can rotate 1-3 consecutive digits up or down in one step. For exampl 阅读全文
posted @ 2019-08-16 15:11 Brave_WTZ 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Alice and Bob are the topmost hunters in the forest, so no preys can escape from them. However, they both think that its hunting skill is better than 阅读全文
posted @ 2019-08-16 14:03 Brave_WTZ 阅读(159) 评论(0) 推荐(0) 编辑
摘要: mmm is learning division, she's so proud of herself that she can figure out the sum of all the divisors of numbers no larger than 100 within one day! 阅读全文
posted @ 2019-08-16 14:00 Brave_WTZ 阅读(191) 评论(0) 推荐(0) 编辑