上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 示例1 输入 2 1 输出 1 2 说明 The sum of subintervals [1],[1,2][1],[1,2][1],[1,2] both satisfy ≡1(mod2), and their lengths are 1,21,21,2 respectively. 示例2 输入 3 阅读全文
posted @ 2020-08-17 11:17 Mr__wei 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 示例1 输入 2 1 输出 1 2 说明 The sum of subinterval... 阅读全文
posted @ 2020-08-17 11:17 Mr__wei 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://ac.nowcoder.com/acm/contest/5675/E 题解:求最大前缀平均值 1 #include<unordered_map> 2 #include<vector> 3 #include<iostream> 4 #include<cstring> 5 #i 阅读全文
posted @ 2020-08-17 10:58 Mr__wei 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://ac.nowcoder.com/acm/contest/5675/E 题解:求最大前缀平均值 1 #include 2 #include 3 #include 4 #include 5 #include 6 #incl... 阅读全文
posted @ 2020-08-17 10:58 Mr__wei 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 输入 235 输出 1 21 2 4 3 题解: 每次能*2就*2,不行就*3 1 #include 2 #include 3 #inc... 阅读全文
posted @ 2020-08-17 10:47 Mr__wei 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 输入 2 3 5 输出 1 2 1 2 4 3 题解: 每次能*2就*2,不行就*3 1 #include<unordered_map> 2 #include<vector> 3 #include<iostream> 4 #include<cstring> 5 #include<algorithm> 阅读全文
posted @ 2020-08-17 10:47 Mr__wei 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 输入 2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0) 输出 1315题解:直接附上代码,注释非常清晰 1 #include<iostream> 2 #include<cstring> 3 #include<string> 4 #include<algo 阅读全文
posted @ 2020-08-17 10:35 Mr__wei 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 输入 2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0) 输出 1315题解:直接附上代码,注释非常清晰 ... 阅读全文
posted @ 2020-08-17 10:35 Mr__wei 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 输入 4 31 32 8 61 23 1 7 5 输出 2 说明 Apple will pay attention to Gr... 阅读全文
posted @ 2020-08-15 17:38 Mr__wei 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 输入 4 3 1 3 2 8 6 1 2 3 1 7 5 输出 2 说明 Apple will pay attention to Groundhog's clothes on day 1, 3, and 4 ,Groundhog will wear clothes with dowdiness of 阅读全文
posted @ 2020-08-15 17:38 Mr__wei 阅读(226) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页