2019年6月5日

codeforce 1156E Special Segments of Permutation

摘要: 题面: 题目大意: 给你一个长度为n的序列,需要你找出一个特殊的区间[L,R],满足这个区间的最大值等于这个区间两边的和。 问你有多少个这样的区间。 解题思路: 对于一个区间[L,R],找出区间的最大值的下标,以此为分界线分为左边,右边。 在长度较小的一边暴力寻找另一边是不是有满足条件的值,有就++ 阅读全文

posted @ 2019-06-05 20:48 新手n号 阅读(80) 评论(0) 推荐(0) 编辑

2019年3月8日

codeforce Round 499 Div2 F Mars rover——记忆化搜索

摘要: 题目描述: Natasha travels around Mars in the Mars rover. But suddenly it broke down, namely — the logical scheme inside it. The scheme is an undirected tr 阅读全文

posted @ 2019-03-08 14:09 新手n号 阅读(133) 评论(0) 推荐(0) 编辑

2018年11月24日

codeforce 1077 F1 and F2 - DP

摘要: The only difference between easy and hard versions is the constraints. Vova likes pictures with kittens. The news feed in the social network he uses c 阅读全文

posted @ 2018-11-24 11:15 新手n号 阅读(226) 评论(0) 推荐(0) 编辑

2018年11月8日

全文检索-hdu1277

摘要: 全文检索 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description 我们大家经常用google检索信息,但是检索信息的程序是很困难编写的;现在请你编写一个简 阅读全文

posted @ 2018-11-08 18:17 新手n号 阅读(114) 评论(0) 推荐(0) 编辑

导航