06 2018 档案
摘要:推荐博客 : https://blog.csdn.net/wbin233/article/details/72998375 以下均转载上文: 简述 康托展开是一个全排列到一个自然数的双射,常用于构建hash表时的空间压缩。设有n个数(1,2,3,4,…,n),可以有组成不同(n!种)的排列组合,康托
阅读全文
摘要:Genghis Khan(成吉思汗)(1162-1227), also known by his birth name Temujin(铁木真) and temple name Taizu(元太祖), was the founder of the Mongol Empire and the grea
阅读全文
摘要:Alice and Bob are going on a trip. Alice is a lazy girl who wants to minimize the total travelling distance, while Bob as an active boy wants to maxim
阅读全文
摘要:A school bought the first computer some time ago(so this computer's id is 1). During the recent years the school bought N-1 new computers. Each new co
阅读全文
摘要:A tree with N nodes and N-1 edges is given. To connect or disconnect one edge, we need 1 unit of cost respectively. The nodes are labeled from 1 to N.
阅读全文
摘要:随着杭州西湖的知名度的进一步提升,园林规划专家湫湫希望设计出一条新的经典观光线路,根据老板马小腾的指示,新的风景线最好能建成环形,如果没有条件建成环形,那就建的越长越好。 现在已经勘探确定了n个位置可以用来建设,在它们之间也勘探确定了m条可以设计的路线以及他们的长度。请问是否能够建成环形的风景线?如
阅读全文
摘要:There is one last gate between the hero and the dragon. But opening the gate isn't an easy task. There were n buttons list in a straight line in front
阅读全文
摘要:When we are focusing on solving problems, we usually prefer to stay in front of computers rather than go out for lunch. At this time, we may call for
阅读全文
摘要:Long long ago, there lived two rabbits Tom and Jerry in the forest. On a sunny afternoon, they planned to play a game with some stones. There were n s
阅读全文
摘要:推荐博客: https://blog.csdn.net/dingchenxixi/article/details/52459001 抽屉原理的一种更一般的表述为:“把多于kn个东西任意分放进n个空抽屉(k是正整数),那么一定有一个抽屉中放进了至少k+1个东西。 利用上述原理容易证明:“任意7个整数中
阅读全文
摘要:Here is a famous story in Chinese history. That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play hors
阅读全文
摘要:Let us define a regular brackets sequence in the following way: 1. Empty sequence is a regular sequence. 2. If S is a regular sequence, then (S) and [
阅读全文
摘要:Partychen like to do mathematical problems. One day, when he was doing on a least common multiple(LCM) problem, he suddenly thought of a very interest
阅读全文
摘要:Diablo III is an action role-playing video game. A few days ago, Reaper of Souls (ROS), the new expansion of Diablo III, has been released! On hearing
阅读全文
摘要:Description In a shop each kind of product has a price. For example, the price of a flower is 2 ICU (Informatics Currency Units) and the price of a va
阅读全文
摘要:There is a straight highway with villages alongside the highway. The highway is represented as an integer axis, and the position of each village is id
阅读全文
摘要:Problem 1538 - B - Stones II Time Limit: 1000MS Memory Limit: 65536KB Total Submit: 428 Accepted: 64 Special Judge: No Description Xiaoming took the f
阅读全文
摘要:链接:https://www.nowcoder.com/acm/contest/111/A来源:牛客网 作为故事主角的托米是一名老师。 一天,他正在为解析算术表达式的课程准备课件。 在课程的第一部分,他只想专注于解析括号。 他为他的学生发明了一个有趣的正确括号序列的几何表示,如下图所示: 几何表示的
阅读全文
摘要:题意: 给你 n 张卡片,总共可以消耗的法力值,求最多可以造成多少伤害, 卡片分为2种,一种是魔法卡,使用后可以使所有的连环卡的费用全部减1,另一种是连环卡,因魔法卡的使用可以使其费用减1,问最终最多可以造成多少的伤害 思路分析 : 比赛的时候大脑短路了,基本不愿意去想东西了,导致题目没有出来,这个
阅读全文