![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
规律
追逐星辰的光
脚踏实地,虚心前行
展开
-
规律:HDU - 5914 Triangle
Mr. Frog has n sticks, whose lengths are 1,2, 3⋯⋯n respectively. Wallice is a bad man, so he does not want Mr. Frog to form a triangle with three of the sticks here. He decides to steal some sticks!原创 2017-10-10 21:11:41 · 353 阅读 · 0 评论 -
HDU - 5918 Sequence I
Mr. Frog has two sequences a1,a2,⋯,ana1,a2,⋯,an and b1,b2,⋯,bmb1,b2,⋯,bm and a number p. He wants to know the number of positions q such that sequence b1,b2,⋯,bmb1,b2,⋯,bm is exactly the sequence原创 2017-10-10 21:33:13 · 460 阅读 · 0 评论 -
DNA Consensus String UVA - 1368 模拟找规律
DNA Consensus StringTime limit: 3.000 secondsFigure 1.DNA (Deoxyribonucleic Acid) is the molecule which contains the genetic instructions. It consists of four different nucleotides, namely A原创 2017-10-19 20:04:48 · 362 阅读 · 0 评论 -
869B - The Eternal Immortality 暴力 模拟
B. The Eternal Immortalitytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputEven if the world is full of coun原创 2017-10-20 17:52:26 · 303 阅读 · 0 评论 -
Ancient Cipher
DescriptionAncient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in e原创 2017-10-20 22:53:30 · 258 阅读 · 0 评论 -
KazaQ's Socks HDU - 6043
KazaQ wears socks everyday. At the beginning, he has nn pairs of socks numbered from 11 to nn in his closets. Every morning, he puts on a pair of socks which has the smallest number in the原创 2017-10-31 22:17:33 · 247 阅读 · 0 评论 -
Fliping game HDU - 4642
Alice and Bob are playing a kind of special game on an N*M board (N rows, M columns). At the beginning, there are N*M coins in this board with one in each grid and every coin may be upward or downward原创 2017-10-25 23:49:16 · 231 阅读 · 0 评论