摘要: Description An array of size n ≤ 106 is given to you. There is a sliding window of size k which is moving from the very left of the array to the very 阅读全文
posted @ 2016-05-17 12:23 Lweleth 阅读(366) 评论(0) 推荐(0) 编辑
摘要: Description N students were invited to attend a party, every student has some friends, only if someone’s all friends attend this party, this one can a 阅读全文
posted @ 2016-05-17 12:09 Lweleth 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Description There is a river, which contains n stones from left to right. These stones are magic, each one has a magic number Ai which means if you st 阅读全文
posted @ 2016-05-17 11:09 Lweleth 阅读(200) 评论(0) 推荐(0) 编辑
摘要: A wise man told Kerem "Different is good" once, so Kerem wants all things in his life to be different. Kerem recently got a string s consisting of low 阅读全文
posted @ 2016-05-17 10:47 Lweleth 阅读(174) 评论(0) 推荐(0) 编辑
摘要: A. Summer Camp Every year, hundreds of people come to summer camps, they learn new algorithms and solve hard problems. This is your first year at summ 阅读全文
posted @ 2016-05-17 10:42 Lweleth 阅读(225) 评论(0) 推荐(0) 编辑
摘要: D. Robin Hood We all know the impressive story of Robin Hood. Robin Hood uses his archery skills and his wits to steal the money from rich, and return 阅读全文
posted @ 2016-05-17 10:31 Lweleth 阅读(362) 评论(0) 推荐(0) 编辑