随笔分类 - 题库—HDOJ
摘要:Problem Description Now it's time for lunch. Today's menu is chocolate! Though every baby likes chocolate, the appetites of babies are little. After l
阅读全文
摘要:Problem Description Nim is a two-player mathematic game of strategy in which players take turns removing objects from distinct heaps. On each turn, a
阅读全文
摘要:Problem Description 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。 不吉利的数字为所有含有4或62的号码。
阅读全文
摘要:Avin is studying series. A series is called "wave" if the following conditions are satisfied: It contains at least two elements; All elements at odd p
阅读全文
摘要:Cuber QQ has signed up for a gambling game, that challenges him to predict the stock price of Quber CC Limited, for the next following n days. He shal
阅读全文
摘要:After some basic geometric lessons, Cuber QQ has learned that one can draw one and only one circle across three given distinct points, on a 2D plane.
阅读全文
摘要:Problem Description An undirected connected graph has n n nodes and m m edges, The i -th edge’s length is , Each node i has a value , whi
阅读全文
摘要:Problem Description You are given two 10-based integers b and x, and you are required to determine the following proposition is true or false: For arb
阅读全文
摘要:Problem Description Little Rabbit is interested in radix. In a positional numeral system, the radix is the number of unique digits, including the digi
阅读全文
摘要:There is a piece of paper in rectangular shape with sufficient length and width (lay flat on the table). Execute an operation instruction according to
阅读全文
摘要:Generate three integers , , and in with equal probability independently, and use them as the three right-angle side length o
阅读全文
摘要:It is Zhang3's birthday! Zhang3 has bought a birthday cake and now it's time to take it home. There are n villages, labeled 1,2,…,n. There are m bidir
阅读全文
摘要:Zhang3 a participant of IPhO (Immortal Physics Olympiad). The problem in the contest is as follows. There are two balls that weigh k
阅读全文
摘要:Problem Description Zhang3 is playing a shooting game with Father. In the game there are two players trying to kill each other to win the game. The ga
阅读全文
摘要:Princess CJB has lived almost her entire life in the isolated town of Ertona, where CJB uses her unique ability to recognize where crystals of materia
阅读全文
摘要:There are n members in our ACM club. Little W wants to select three persons from our club to form a new team taking part in provincial ACM contests, a
阅读全文
摘要:Given a string P consisting of only parentheses and asterisk characters (i.e. "(", ")" and ""), you are asked to replace all the asterisk characters i
阅读全文
摘要:Lead of Wisdom In an online game, "Lead of Wisdom" is a place where the lucky player can randomly get powerful items. There are k types of items, a pl
阅读全文
摘要:Problem Description S is a string of length n. S consists of lowercase English alphabets. Your task is to count the number of different S with the min
阅读全文