
ACM__模拟
Spectacules
每一段代码都是艺术品
展开
-
UVA 11210 - Chinese Mahjong
UVA 11210 - Chinese MahjongMahjong () is a game of Chinese origin usually played by four persons with tiles resembling dominoes and bearing various designs, which are drawn and discarded until one p原创 2015-05-03 12:20:50 · 469 阅读 · 0 评论 -
FZU 2197 最小花费
Problem 2197 最小花费 Problem Description给一个长度为n(n Input第一行一个整数T(1 Output最小花费。 Sample Input2121100120011 Sample Output03【思路分析】 该题贪心的策略就是优先处理最后一个1和最前一原创 2015-08-29 11:16:36 · 567 阅读 · 0 评论 -
UVA 10881 Piotr's Ants
Piotr's AntsPiotr likes playing with ants. He hasn of them on a horizontal poleL cm long. Each ant is facing either left or right and walks at a constant speed of 1 cm/s. When two ants bump into原创 2015-09-16 22:23:23 · 360 阅读 · 0 评论