Loading

摘要: You are given a binary string s consisting of n zeros and ones. Your task is to divide the given string into the minimum number of subsequences in suc 阅读全文
posted @ 2020-08-07 15:26 脂环 阅读(310) 评论(0) 推荐(0) 编辑
摘要: There are n people who want to participate in a boat competition. The weight of the i -th participant is wi. Only teams consisting of two people can p 阅读全文
posted @ 2020-08-07 15:02 脂环 阅读(549) 评论(0) 推荐(0) 编辑
摘要: You have n gifts and you want to give all of them to children. Of course, you don't want to offend anyone, so all gifts should be equal between each o 阅读全文
posted @ 2020-08-07 14:34 脂环 阅读(655) 评论(1) 推荐(1) 编辑
摘要: You are given the array aa a consisting of n positive (greater than zero) integers. In one move, you can choose two indices i and j (i≠j) such that th 阅读全文
posted @ 2020-08-07 14:21 脂环 阅读(677) 评论(0) 推荐(0) 编辑
摘要: Problem Description An undirected connected graph has n n nodes and m m edges, The i -th edge’s length is $2^i$, Each node i has a value \(a_i\) , whi 阅读全文
posted @ 2020-08-07 00:27 脂环 阅读(224) 评论(0) 推荐(0) 编辑