摘要: ACboy很喜欢玩一种战略游戏,在一个地图上,有N座城堡,每座城堡都有一定的宝物,在每次游戏中ACboy允许攻克M个城堡并获得里面的宝物。但由于地理位置原因,有些城堡不能直接攻克,要攻克这些城堡必须先攻克其他某一个特定的城堡。你能帮ACboy算出要获得尽量多的宝物应该攻克哪M个城堡吗? Input每 阅读全文
posted @ 2018-08-05 21:59 Roni_i 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-08-05 16:46 Roni_i 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 不要62 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 56193 Accepted Submission(s): 21755 Problem 阅读全文
posted @ 2018-08-05 15:53 Roni_i 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 1026: [SCOI2009]windy数 Description windy定义了一种windy数。不含前导零且相邻两个数字之差至少为2的正整数被称为windy数。 windy想知道,在A和B之间,包括A和B,总共有多少个windy数? windy定义了一种windy数。不含前导零且相邻两个数字 阅读全文
posted @ 2018-08-05 15:38 Roni_i 阅读(216) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; int t; long long dp[19][19][2005]; long long l, r; int digit[20]; long long dfs(int len,...int if4..., bool limit) { if (len == 0) ... 阅读全文
posted @ 2018-08-05 14:46 Roni_i 阅读(219) 评论(0) 推荐(0) 编辑
摘要: You are a member of the space station engineering team, and are assigned a task in the construction process of the station. You are expected to write 阅读全文
posted @ 2018-08-05 10:05 Roni_i 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs you 阅读全文
posted @ 2018-08-05 01:14 Roni_i 阅读(255) 评论(0) 推荐(0) 编辑