摘要: ##题面 翰翰和达达饲养了N只小猫,这天,小猫们要去爬山。 经历了千辛万苦,小猫们终于爬上了山顶,但是疲倦的它们再也不想徒步走下山了(呜咕>_<)。 翰翰和达达只好花钱让它们坐索道下山。 索道上的缆车最大承重量为W,而N只小猫的重量分别是C1、C2……CN。 当然,每辆缆车上的小猫的重量之和不能超过 阅读全文
posted @ 2020-07-18 18:12 Luglucky 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ##题面 You are given a string s[1…n] consisting of lowercase Latin letters. It is guaranteed that n=2k for some integer k≥0. The string s[1…n] is called 阅读全文
posted @ 2020-07-18 16:28 Luglucky 阅读(174) 评论(0) 推荐(0) 编辑
摘要: ##题面 You are given an array a consisting of n integers. You have to find the length of the smallest (shortest) prefix of elements you need to erase fr 阅读全文
posted @ 2020-07-18 15:52 Luglucky 阅读(163) 评论(0) 推荐(0) 编辑