摘要: You are given an integer array of length nn. You have to choose some subsequence of this array of maximum length such that this subsequence forms a in 阅读全文
posted @ 2018-07-16 20:33 zdragon 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Genos recently installed the game Zuma on his phone. In Zuma there exists a line of n gemstones, the i-th of which has color ci. The goal of the game 阅读全文
posted @ 2018-07-16 20:23 zdragon 阅读(337) 评论(0) 推荐(0) 编辑
摘要: Charlie is a driver of Advanced Cargo Movement, Ltd. Charlie drives a lot and so he often buys coffee at coffee vending machines at motorests. Charlie 阅读全文
posted @ 2018-06-22 18:14 zdragon 阅读(592) 评论(0) 推荐(0) 编辑
摘要: Description Emma and Eric are moving to their new house they bought after returning from their honeymoon. Fortunately, they have a few friends helping 阅读全文
posted @ 2018-06-21 22:52 zdragon 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 描述 HaHa is so happy today, he is going to participate the 7th Hunan University Programming Contest. He woke up in the morning, and wanted to reach Hun 阅读全文
posted @ 2018-06-21 14:12 zdragon 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Problem Description ACboy很喜欢玩一种战略游戏,在一个地图上,有N座城堡,每座城堡都有一定的宝物,在每次游戏中ACboy允许攻克M个城堡并获得里面的宝物。但由于地理位置原因,有些城堡不能直接攻克,要攻克这些城堡必须先攻克其他某一个特定的城堡。你能帮ACboy算出要获得尽量多的 阅读全文
posted @ 2018-06-19 21:17 zdragon 阅读(189) 评论(0) 推荐(0) 编辑
摘要: There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees 阅读全文
posted @ 2018-06-19 21:15 zdragon 阅读(193) 评论(0) 推荐(0) 编辑
摘要: A school bought the first computer some time ago(so this computer's id is 1). During the recent years the school bought N-1 new computers. Each new co 阅读全文
posted @ 2018-06-19 21:07 zdragon 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 描述 JAVAMAN is visiting Dream City and he sees a yard of gold coin trees. There are n trees in the yard. Let's call them tree 1, tree 2 ...and tree n. 阅读全文
posted @ 2018-06-15 22:18 zdragon 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 描述 Seller: That will be fourteen dollars. Buyer: Here's a twenty. Seller: Sorry, I don't have any change. Buyer: OK, here's a ten and a five. Keep the 阅读全文
posted @ 2018-06-15 22:08 zdragon 阅读(221) 评论(0) 推荐(0) 编辑