优美的暴力
zuhiul
这个作者很懒,什么都没留下…
展开
-
HAUToj 1264 某科学的打麻将
过年打麻将果然是一项必备技能(雾),打麻将的起手式是整理好自己手中的牌,现在你有十三张牌(只可能出现一万到九万,一筒到九筒,一条到九条),你要把这些牌整理好,使得相同花色的牌必须在连续的唯一一段(即所有的"万"要放在一起,所有的"条"要放在一起,所有的"筒"要放在一起。),每段内牌是按照从小到大的顺序排列(“万”,“条”,“筒”的顺序没有要求)。你每次只能将当前牌中的任意一张牌放到最左边或者最右边。原创 2017-07-07 10:10:55 · 370 阅读 · 0 评论 -
poj 3668 Game of Lines
Farmer John has challenged Bessie to the following game: FJ has a board with dots marked at N (2 ≤ N ≤ 200) distinct lattice points. Dot i has the integer coordinates Xi and Yi (-1,000 ≤ Xi ≤ 1,000; -1原创 2017-07-23 15:49:45 · 330 阅读 · 0 评论 -
poj 1458 Common Subsequence
传送门:点这里。A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of X if there exists a stric原创 2018-02-03 09:55:00 · 150 阅读 · 0 评论 -
hdu 1306 String Matching
传送门。It's easy to tell if two words are identical - just check the letters. But how do you tell if two words are almost identical? And how close is "almost"?There are lots of techniques for approxi...原创 2018-02-27 11:33:23 · 482 阅读 · 0 评论 -
hdu 1264 Counting Squares
传送门。Your input is a series of rectangles, one per line. Each rectangle is specified as two points(X,Y) that specify the opposite corners of a rectangle. All coordinates will be integers in the range...原创 2018-02-22 10:51:00 · 392 阅读 · 0 评论 -
BAPC Going Dutch
You and your friends have just returned from a beautiful vacation in the mountains of the Netherlands. When on vacation, it’s annoying to split the bill on every expense every time, so you just kept a...原创 2018-04-09 11:09:47 · 1024 阅读 · 0 评论