
莫队算法
文章平均质量分 89
___fouzhe
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
bzoj 2038 [2009国家集训队]小Z的袜子(hose)(莫队算法)
题目链接2038: [2009国家集训队]小Z的袜子(hose)Time Limit: 20 Sec Memory Limit: 259 MBSubmit: 7285 Solved: 3349[Submit][Status][Discuss]Description作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中找出一双来穿。终于有一天,小Z再原创 2016-09-22 20:35:00 · 345 阅读 · 0 评论 -
bzoj 3757 苹果树(树上莫队)
题目链接3757: 苹果树Time Limit: 20 Sec Memory Limit: 256 MBSubmit: 1674 Solved: 550[Submit][Status][Discuss]Description 神犇家门口种了一棵苹果树。苹果树作为一棵树,当然是呈树状结构,每根树枝连接两个苹果,每个苹果都可以沿着一条由树枝构成的路径连到树根,原创 2016-09-23 18:47:06 · 888 阅读 · 0 评论 -
gym-101138D(后缀和,莫队算法,容斥原理,好题)
题目链接D. Strange Queriestime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array with n in原创 2017-02-08 20:11:07 · 607 阅读 · 0 评论 -
Kattis-Curious Cupid(莫队)
题目链接Curious CupidThere are K different languages in the world. Each person speaks one and only one language. There are exactly N single men and N single women.Cupid, the god of l原创 2017-02-26 17:46:41 · 452 阅读 · 0 评论