随笔分类 - 二分
摘要:Musical Theme Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 30430 Accepted: 10183 Description A musical melody is represented as a sequen
阅读全文
摘要:D. Monitor time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Monitor time limit per tes
阅读全文
摘要:D. Robin Hood time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. Robin Hood time limit pe
阅读全文
摘要:4326: NOIP2015 运输计划 Description 公元 2044 年,人类进入了宇宙纪元。L 国有 n 个星球,还有 n−1 条双向航道,每条航道建立在两个星球之间,这 n−1 条航道连通了 L 国的所有星球。小 P 掌管一家物流公司, 该公司有很多个运输计划,每个运输计划形如:有一艘
阅读全文
摘要:Get Luffy Out Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8851 Accepted: 3441 Description Ratish is a young man who always dreams of be
阅读全文
摘要:Hard Life Time Limit: 8000MS Memory Limit: 65536K Total Submissions: 9012 Accepted: 2614 Case Time Limit: 2000MS Special Judge Description John is a C
阅读全文
摘要:Sightseeing Cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 10306 Accepted: 3519 Description Farmer John has decided to reward his cow
阅读全文
摘要:The Company Dynamic Rankings has developed a new kind of computer that is no longer satisfied with the query like to simply find the k-th smallest num
阅读全文
摘要:E. Army Creation time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Army Creation time l
阅读全文
摘要:A. 微软手机的信号显示 模拟题,用一个7*7个数组,然后int除法判断信号有几成就可以了 代码: B. 微软大楼设计方案(简单) 模拟题+BFS,我是用一个比较大的数组当地图,然后以80行为地面根据楼的高度一层一层地往上盖楼房,然后$O(m^2)$枚举两两点之间BFS出距离判断一下更新答案 代码:
阅读全文
摘要:世风日下的哗啦啦族I Time Limit: 4000/2000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others) Submit Statistic Next Problem Problem Description "世风日下啊,女
阅读全文
摘要:One day, Peter came across a function which looks like: F(1, X) = X mod A1. F(i, X) = F(i - 1, X) mod Ai, 2 ≤ i ≤ N. Where A is an integer array of le
阅读全文
摘要:Function Time Limit: 7000/3500 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 2427 Accepted Submission(s): 858 Prob
阅读全文
摘要:题目描述 题目描述 现在给两个仅包含小写字母的字符串a,b ,求a 与b的最长公共连续子串的长度。 现在给两个仅包含小写字母的字符串a,b ,求a 与b的最长公共连续子串的长度。 输入格式 输入格式 两个字符串 两个字符串 输出格式 输出格式 一个整数,为输入的两个字符串的最长公共连续子串的长度 一
阅读全文
摘要:K Best Time Limit: 8000MS Memory Limit: 65536K Total Submissions: 9876 Accepted: 2535 Case Time Limit: 2000MS Special Judge Description Demy has n jew
阅读全文
摘要:Desert King Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 25310 Accepted: 7022 Description David the Great has just become the king of a
阅读全文
摘要:Dropping tests Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11367 Accepted: 3962 Description In a certain course, you take n tests. If y
阅读全文
摘要:题意:给定长度为N的数组,求一段连续的元素之和大于等于K,并且让这段元素的长度最小,输出最小长度即可,若不存在这样的元素集合,则输出-1 题目链接:UVAlive 6609 做法:做一个前缀和prefix,然后再作一个维护前缀和最大值数组Max,枚举所有可能的起始点i,在Max上二分末尾位置r,由于
阅读全文
摘要:D. String Game time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output D. String Game time limit
阅读全文
摘要:Assignment Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 3813 Accepted Submission(s): 1771 Pro
阅读全文

浙公网安备 33010602011771号