
规律
追逐星辰的光
脚踏实地,虚心前行
展开
-
规律: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 · 377 阅读 · 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 · 489 阅读 · 0 评论 -
DNA Consensus String UVA - 1368 模拟找规律
DNA Consensus String Time limit: 3.000 seconds Figure 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 · 400 阅读 · 0 评论 -
869B - The Eternal Immortality 暴力 模拟
B. The Eternal Immortality time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Even if the world is full of coun原创 2017-10-20 17:52:26 · 323 阅读 · 0 评论 -
Ancient Cipher
Description Ancient 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 · 279 阅读 · 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 · 266 阅读 · 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 · 253 阅读 · 0 评论