随笔分类 -  枚举

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Very soon there will be a parade of v... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(120) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output One day, the Grasshopper was jumping ... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(233) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vasya’s telephone contains n photos. ... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(140) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Vasya decided to pass a very large i... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(122) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output It was recycling day in Kekoland. To... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(269) 评论(0) 推荐(0)
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Polycarp urgently needs a shovel! He ... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(115) 评论(0) 推荐(0)
摘要:time limit per test4 seconds memory limit per test256 megabytes inputstandard input outputstandard output Anton is playing a very interesting ... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(180) 评论(0) 推荐(0)
摘要:Time Limit: 10 second Memory Limit: 2 MB问题描述 n位同学站成一排,音乐老师要请其中的(n-k)位同学出列,使得剩下的k位同学排成合唱队形。合唱队形是指这样的一种队形:设k位同学从左到由一次编号为1,2….k,他们的身高分别为t1,t2,…,t... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(325) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given n numbers a1, a2, …, a... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(189) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Spongebob is already tired trying to... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(146) 评论(0) 推荐(0)
摘要:time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output There are n beacons located at disti... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(205) 评论(0) 推荐(0)
摘要:Time Limit: 1 second Memory Limit: 128 MB【问题描述】你第一天接手三鹿牛奶公司就发生了一件倒霉的事情:公司不小心发送了一批有三聚氰胺的牛奶。很不幸,你发现这件事的时候,有三聚氰胺的牛奶已经进入了送货网。这个送货网很大,而且关系复杂。你知道这批牛... 阅读全文
posted @ 2017-10-06 19:22 AWCXV 阅读(162) 评论(0) 推荐(0)
摘要:【链接】h在这里写链接【题意】在这里写题意【题解】枚举它是在连接处,还是就是整个字符串就好。【错的次数】0【反思】在这了写反思【代码】#include using namespace std;const int N = 100;string s;string ts[N+10];int main(){... 阅读全文
posted @ 2017-10-06 19:13 AWCXV 阅读(113) 评论(0) 推荐(0)
摘要:【链接】h在这里写链接【题意】 让你找出uvu形式的字符串个数。 v非空且长度为L,且u也非空【题解】 之前做过一道相同的题。 枚举u的长度. 然后从u,2u,3u...作为端点x x+L+u作为另外一个端点y 然后x和y看看能不能同时向左移... 阅读全文
posted @ 2017-10-06 19:13 AWCXV 阅读(224) 评论(0) 推荐(0)
摘要:【题目链接】:http://hihocoder.com/problemset/problem/1496【题意】 【题解】 先把这n个数排个序吧. 这样相邻的数字就在一起了; 这样a[i]&a[i+1]的值肯定是尽可能地大了; 然后乘上a[i]*a[i+1]再取max就好; 奇怪的贪... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(86) 评论(0) 推荐(0)
摘要:【题目链接】:http://hihocoder.com/problemset/problem/1494【题意】 【题解】 显然只要记住每一行的各个砖头的间隔处的坐标有多少个就好了; ->也就对应了从这个地方画一条竖线上去,能少碰到多少个砖头; 取少碰到的砖头数的最大值; 然后用N减... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(80) 评论(0) 推荐(0)
摘要:【题目链接】:http://hihocoder.com/problemset/problem/1493【题意】 【题解】 枚举P从2..n/2 如果P是质数且N-P也是质数; 则输出P和N-P就好; 【完整代码】#include using namespace std;#defi... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(133) 评论(0) 推荐(0)
摘要:【题目链接】:http://codeforces.com/contest/779/problem/E【题意】 给你n个长度为m的二进制数 (有一些是通过位运算操作两个数的形式给出); 然后有一个未知数字,用符号’?’表示; (所有的数字都是长度为m的二进制数); 然后让你确定这个’... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(231) 评论(0) 推荐(0)
摘要:【题目链接】:https://leetcode.com/contest/leetcode-weekly-contest-26/problems/split-array-with-equal-sum/【题意】 让你把一段序列去掉3个元素,然后分成4个部分; 要求这4个部分的和相同; ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(139) 评论(0) 推荐(0)
摘要:【题目链接】:https://leetcode.com/contest/leetcode-weekly-contest-26/problems/longest-uncommon-subsequence-ii/【题意】 字符串变成多个了; (不止两个) 让你求最长不公共子序列 【题解... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(126) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页