----暴力
Wang_128
这个作者很懒,什么都没留下…
展开
-
UVA10167-birthday cake
Birthday cakeBackgroundLucy and Lily are twins. Today is their birthday. Mother buys a birthday cake for them.Now we put the cake onto a Descartes coordinate. Its center is at (0,0), and the原创 2016-05-08 19:04:35 · 483 阅读 · 0 评论 -
HDU5839-Special Tetrahedron(判断四点共面,叉乘求平面垂直向量)
Special Tetrahedron Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)原创 2017-05-15 11:26:47 · 743 阅读 · 0 评论 -
HDU6027-Easy Summation
Easy Summation Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)原创 2017-05-07 18:00:16 · 343 阅读 · 0 评论 -
HDU5908-Abelian Period
Abelian Period Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others)原创 2016-10-02 21:06:42 · 292 阅读 · 0 评论 -
HDU5907-Find Q
Find Q Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others)原创 2016-10-02 21:02:01 · 523 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1096 Consecutive Factors (20)
1096. Consecutive Factors (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAmong all the factors of a positive in原创 2017-07-03 14:19:54 · 204 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1069 The Black Hole of Numbers (20)
1069. The Black Hole of Numbers (20)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueFor any 4-digit integer except t原创 2017-07-13 10:31:26 · 251 阅读 · 0 评论 -
Codeforces 816A-Karen and Morning
Karen and Morningtime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputKaren is getting ready for a new school d原创 2017-06-26 22:27:32 · 322 阅读 · 0 评论 -
Codeforces 821A-Okabe and Future Gadget Laboratory
Okabe and Future Gadget Laboratorytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOkabe needs to renovate原创 2017-06-26 22:55:04 · 397 阅读 · 0 评论 -
美团codeM资格赛 音乐研究
音乐研究时间限制:1秒空间限制:32768K美团外卖的品牌代言人袋鼠先生最近正在进行音乐研究。他有两段音频,每段音频是一个表示音高的序列。现在袋鼠先生想要在第二段音频中找出与第一段音频最相近的部分。具体地说,就是在第二段音频中找到一个长度和第一段音频相等且是连续的子序列,使得它们的 difference 最小。两段等长音频的 difference 定义为原创 2017-06-27 10:58:47 · 298 阅读 · 0 评论 -
Codeforces 820A Mister B and Book Reading
Mister B and Book Readingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMister B once received a gift: it原创 2017-06-28 09:44:56 · 385 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1068 Find More Coins (30)
1068. Find More Coins (30)时间限制150 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueEva loves to collect coins from all over t原创 2017-07-14 15:38:25 · 255 阅读 · 0 评论 -
HDU4858-项目管理
项目管理 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)原创 2017-07-24 20:20:26 · 222 阅读 · 0 评论 -
FZU2086-餐厅点餐
Problem 2086 餐厅点餐Accept: 349 Submit: 1106Time Limit: 1000 mSec Memory Limit : 32768 KB Problem DescriptionJack最近喜欢到学校餐厅吃饭,好吃干净还便宜。在学校餐厅,有a种汤,b种饭,c种面条,d种荤菜,e种素菜。为了保证膳食搭配,Jack每原创 2017-04-10 21:18:33 · 484 阅读 · 0 评论 -
Gym101194C-Mr. Panda and Strips
题意:给你n个数,将他们分成一些连续的集合,并且集合中的元素不重复,从这些集合中选出两个集合合并后元素也不重复,问合并后的集合大小最大为多少解题思路:暴力+尺取法+剪枝#include #include #include #include #include #include #include #include #include #include #include原创 2017-10-12 19:36:35 · 873 阅读 · 0 评论 -
HDU6223-Infinite Fraction Path
Infinite Fraction Path Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)原创 2017-11-17 22:23:08 · 702 阅读 · 0 评论 -
2017华东师范大学网赛-袋鼠妈妈找孩子
袋鼠妈妈找孩子Time limit per test: 1.5 secondsTime limit all tests: 10.0 secondsMemory limit: 256 megabytes袋鼠妈妈找不到她的孩子了。她的孩子被怪兽抓走了。袋鼠妈妈现在在地图的左上角,她的孩子在地图第 x 行第 y 列的位置。怪兽想和袋鼠妈妈玩一个游戏:他不想让袋鼠妈原创 2017-05-14 23:45:00 · 533 阅读 · 0 评论 -
ZOJ1609-Equivalence
EquivalenceTime Limit: 5 Seconds Memory Limit: 32768 KBWhen learning mathamatics, sometimes one may come to an theorem which goes like this:The following statements are equivalent:原创 2017-04-17 12:03:17 · 296 阅读 · 0 评论 -
HDU1238-Substrings
Substrings Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)原创 2016-09-16 20:44:31 · 274 阅读 · 0 评论 -
HDU1671-Phone List
Phone List Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)原创 2016-09-20 16:13:47 · 253 阅读 · 0 评论 -
团体程序设计天梯赛L2-013 红色警报
L2-013. 红色警报时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越战争中保持各个城市间的连通性非常重要。本题要求你编写一个报警程序,当失去一个城市导致国家被分裂为多个无法连通的区域时,就发出红色原创 2017-03-01 18:06:25 · 380 阅读 · 0 评论 -
Codeforces 761C-Dasha and Password
Dasha and Passwordtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter overcoming the stairs Dasha came t原创 2017-02-02 00:06:47 · 469 阅读 · 0 评论 -
ZOJ3332-Strange Country II
Strange Country IITime Limit: 1 Second Memory Limit: 32768 KB Special JudgeYou want to visit a strange country. There are n cities in the country. Cities are numbered from 1 to n.原创 2017-02-03 23:04:09 · 256 阅读 · 0 评论 -
Codeforces 777D-Cloud of Hashtags
Cloud of Hashtagstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya is an administrator of a public pag原创 2017-02-25 21:48:36 · 392 阅读 · 0 评论 -
HDU1394-Minimum Inversion Number
Minimum Inversion Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)原创 2016-09-15 10:59:51 · 221 阅读 · 0 评论 -
2017广东工业大学程序设计竞赛决赛-两只老虎
两只老虎Description来,我们先来放松下,听听儿歌,一起“唱”。两只老虎两只老虎,跑得快跑得快。一只没有耳朵,一只没有尾巴。真奇怪,真奇怪。Tmk也觉得很奇怪,因为在他面前突然出现了一群这样的老虎,有的没耳朵,有的没尾巴,不过也有正常的。现在Tmk告诉你这群老虎的耳朵个数,尾巴条数,以及老虎的腿的数目,问你有多少只是正原创 2017-03-28 12:38:11 · 450 阅读 · 0 评论 -
NBUT1223-Friends number
Friends number时间限制: 1000 ms 内存限制: 131072 K问题描述Paula and Tai are couple. There are many stories between them. The day Paula left by airplane, Tai send one message to telephone 2200284,原创 2017-03-28 23:36:42 · 336 阅读 · 0 评论 -
POJ3697-USTC campus network
USTC campus networkTime Limit: 4000MS Memory Limit: 65536KTotal Submissions: 4886 Accepted: 1496DescriptionUSTC campus network is a huge network. There is a bi-原创 2017-03-13 16:00:24 · 455 阅读 · 0 评论 -
ZOJ2976-Light Bulbs
Light BulbsTime Limit: 2 Seconds Memory Limit: 65536 KBWildleopard had fallen in love with his girlfriend for 20 years. He wanted to end the long match for their love and get married th原创 2017-04-12 00:02:55 · 617 阅读 · 0 评论 -
zstu-4269买iphone
4269: 买iphoneTime Limit: 3 Sec Memory Limit: 128 MBSubmit: 1913 Solved: 365Description自从上次仓鼠中了1000万彩票后,彻底变成了土豪了,一群人愿意认他做干爹,仓鼠决定送他的干儿子每人一部iphone。仓鼠今天带了一群人去买iphone,每个人身上都背着一个大背包,只有3种背包,分原创 2017-03-26 20:12:31 · 251 阅读 · 0 评论 -
POJ1696-Space Ant(凸包)
Space AntTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4353 Accepted: 2740DescriptionThe most exciting space discovery occurred at the end of the 20原创 2017-04-17 12:10:29 · 1025 阅读 · 0 评论 -
ZOJ2418-Matrix
MatrixTime Limit: 2 Seconds Memory Limit: 65536 KBGiven an n*n matrix A, whose entries Ai,j are integer numbers ( 0 SHIFT at row i ( 0 <= i < n ) will move the integers in the row one p原创 2017-04-19 19:47:48 · 341 阅读 · 0 评论 -
HDU5875-Function
Function Time Limit: 7000/3500 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) ...原创 2016-09-11 22:37:31 · 446 阅读 · 0 评论