摘要: Description You are given an array a consisting of n integers. In one move you can choose any aiai and divide it by 2 rounding down (in other words, i 阅读全文
posted @ 2019-09-03 22:21 Artoriax 阅读(442) 评论(0) 推荐(0) 编辑
摘要: Description Heard that eom is a fishing MASTER, you want to acknowledge him as your mentor. As everybody knows, if you want to be a MASTER's apprentic 阅读全文
posted @ 2019-09-03 21:48 Artoriax 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Description You have a directed weighted graph with n vertexes and m edges. The value of a path is the sum of the weight of the edges you passed. Note 阅读全文
posted @ 2019-09-03 16:06 Artoriax 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Description You are given a string S consisting of only lowercase english letters and some queries. For each query (l,r,k), please output the starting 阅读全文
posted @ 2019-09-03 14:26 Artoriax 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Description You are given an array a1,a2,...,an(∀i∈[1,n],1≤ai≤n). Initially, each element of the array is unique . Moreover, there are m instructions. 阅读全文
posted @ 2019-09-03 14:15 Artoriax 阅读(187) 评论(0) 推荐(0) 编辑