![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM__模拟
Spectacules
每一段代码都是艺术品
展开
-
UVA 11210 - Chinese Mahjong
UVA 11210 - Chinese Mahjong Mahjong () 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 · 426 阅读 · 0 评论 -
FZU 2197 最小花费
Problem 2197 最小花费 Problem Description 给一个长度为n(n Input 第一行一个整数T(1 Output 最小花费。 Sample Input 2 1 2 1100 1 2 0011 Sample Output 0 3 【思路分析】 该题贪心的策略就是优先处理最后一个1和最前一原创 2015-08-29 11:16:36 · 523 阅读 · 0 评论 -
UVA 10881 Piotr's Ants
Piotr's Ants Piotr likes playing with ants. He has n 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 · 319 阅读 · 0 评论