随笔分类 - 二分
摘要:题目链接 链接: "https://leetcode.com/problems/max sum of rectangle no larger than k/description/" 题解&代码 1、暴力枚举所有的情况,时间复杂度O(n^2 m^2),实际耗时759 ms class Solutio
        阅读全文
                
摘要:题目链接: 题目 "B. Chip 'n Dale Rescue Rangers" time limit per test:1 second memory limit per test:256 megabytes 问题描述 A team of furry rescue rangers was sit
        阅读全文
                
摘要:题目链接: 题目 "Copying Books" Time limit: 3.000 seconds 问题描述 Before the invention of book printing, it was very hard to make a copy of a book. All the cont
        阅读全文
                
摘要:题目链接: http://codeforces.com/contest/660/problem/C 题意: 将最多k个0变成1,使得连续的1的个数最大 题解: 二分连续的1的个数x。用前缀和判断区间[i,i+x-1]里面0的个数是否小于等于k。 代码:
        阅读全文
                
摘要:题目链接: http://codeforces.com/contest/672/problem/D 题意: 给你一个数组,每次操作,最大数减一,最小数加一,如果最大数减一之后比最小数加一之后要小,则取消操作,现在给你操作的次数,问操作之后最大数减最小数的最小值。 题解: 问题要求得是min(k次操作
        阅读全文
                
摘要:题目链接: http://codeforces.com/contest/670/problem/D2 题解: 二分答案。
        阅读全文
                
摘要:题目: B. Friends and Presents time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have two 
        阅读全文
                
摘要:题目链接: hdu:http://acm.hdu.edu.cn/showproblem.php?pid=5200 bc(中文):http://bestcoder.hdu.edu.cn/contests/contest_chineseproblem.php?cid=574&pid=1003 题解: 把
        阅读全文
                
摘要:题目链接: hdu:http://acm.hdu.edu.cn/showproblem.php?pid=5265 bc(中文):http://bestcoder.hdu.edu.cn/contests/contest_chineseproblem.php?cid=599&pid=1002 题意: 从
        阅读全文
                
摘要:题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5432 Pyramid Split Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Tot
        阅读全文
                
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号