
思维
文章平均质量分 81
guozuofeng
这个作者很懒,什么都没留下…
展开
-
插排树(不是dfs喔)
题目链接:https://www.nowcoder.com/acm/contest/157/C 参考链接:https://www.nowcoder.com/acm/contest/view-submission?submissionId=31648555 链接:https://www.nowcoder.com/acm/contest/157/D 来源:牛客网 插排序 一年一度的山东省oi夏...原创 2018-08-14 16:21:09 · 394 阅读 · 0 评论 -
C. Gambling
题目链接:http://codeforces.com/contest/1038/problem/C C. Gambling time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Two players A and ...原创 2018-09-07 18:57:51 · 373 阅读 · 0 评论 -
D. Valid BFS
题目链接:https://codeforces.com/contest/1037/problem/D D. Valid BFS? time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The BFS algorit...原创 2018-09-04 21:35:26 · 178 阅读 · 0 评论 -
A. Packets
题目链接:http://codeforces.com/contest/1037/problem/A A. Packets time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have nn coins, e...原创 2018-09-04 09:18:47 · 363 阅读 · 0 评论 -
C. Rectangles
题目链接:http://codeforces.com/contest/1028/problem/C 题目大意:给出n个矩形,求任意一个被至少n-1个矩形覆盖的点的坐标; C. Rectangles time limit per test 2 seconds memory limit per test 256 megabytes input standard input outpu...原创 2018-09-04 08:28:16 · 725 阅读 · 0 评论 -
C. Rectangles
题目链接:http://codeforces.com/contest/1028/problem/C 题目大意:就是给出n个矩形,求任意一个至少n-1个矩形都覆盖的点; C. Rectangles time limit per test 2 seconds memory limit per test 256 megabytes input standard input output...原创 2018-09-04 08:16:44 · 580 阅读 · 0 评论 -
C. Maximal Intersection
C. Maximal Intersection time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given n segments on a number line; each endpoint of every segment has integer coordinates. Some segments can degener原创 2018-08-30 21:08:49 · 381 阅读 · 0 评论 -
前m大的数 (经典的思维题)
题目链接:https://vjudge.net/contest/247842#problem/A 前m大的数 还记得Gardon给小希布置的那个作业么?(上次比赛的1005)其实小希已经找回了原来的那张数表,现在她想确认一下她的答案是否正确,但是整个的答案是很庞大的表,小希只想让你把答案中最大的M个数告诉她就可以了。 给定一个包含N(N<=3000)个正整数的序列,每个数不超过5...原创 2018-08-17 15:49:05 · 430 阅读 · 0 评论 -
子串查询 (前缀和)
题目链接:https://vjudge.net/contest/245961#problem/D 参考链接:http://www.cnblogs.com/jyroy/p/9424862.html 子串查询 度度熊的字符串课堂开始了!要以像度度熊一样的天才为目标,努力奋斗哦! 为了检验你是否具备不听课的资质,度度熊准备了一个只包含大写英文字母的字符串A[1,n]=a1a2⋯anA[1,n]...原创 2018-08-11 17:46:01 · 946 阅读 · 0 评论 -
B. Shashlik Cooking
题目链接:http://codeforces.com/contest/1040/problem/B B. Shashlik Cooking time limit per test 1 second memory limit per test 512 megabytes input standard input output standard output Long story ...原创 2018-09-07 09:32:11 · 349 阅读 · 0 评论