随笔分类 - 数据结构 树状数组
摘要:``Dynamic'' InversionTime Limit: 20 SecMemory Limit: 256 MB题目连接https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem...
阅读全文
摘要:C. Kleofáš and the n-thlonTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/601/problem/CDescriptionKleofáš is participating in ...
阅读全文
摘要:InversionTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5497Description你有一个序列\{a_1,a_2,...,a_n\}{a1,a2,...,...
阅读全文
摘要:QueueTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5493DescriptionN people numbered from 1 to N are waiting in a...
阅读全文
摘要:1878: [SDOI2009]HH的项链Time Limit: 1 Sec Memory Limit: 256 MB题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=1878DescriptionHH有一串由各种漂亮的贝壳组成的项链。HH相信不...
阅读全文
摘要:JapanTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://acm.uestc.edu.cn/#/problem/show/383DescriptionJapan plans to welcome the ACM ICPC World Finals a...
阅读全文
摘要:1452: [JSOI2009]CountTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=1452DescriptionInputOutputSample InputS...
阅读全文
摘要:H. MilestonesTime Limit: 1 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100114DescriptionThe longest road of the Fairy Kingdom has n milestone...
阅读全文
摘要:CrossingsTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100463DescriptionGiven a permutation P of {0, 1, ..., n − 1}, we define t...
阅读全文
摘要:C. Propagating treeTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/383/problem/CDescriptionIahub likes trees very much. Recent...
阅读全文
摘要:天下归晋Time Limit: 1 SecMemory Limit: 256 MB题目连接http://acm.uestc.edu.cn/#/problem/show/842Description晋朝统一天下已有十年,曹魏、孙吴、蜀汉这些曾与天下相争的王朝,都成为了过眼云烟,仅留于故事之中。“爷爷,...
阅读全文
摘要:Minimum Inversion NumberTime Limit: 1 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1394DescriptionThe inversion number of a gi...
阅读全文
摘要:母仪天下Time Limit: 1 SecMemory Limit: 162 MB题目连接http://acm.uestc.edu.cn/#/problem/show/838Description富庶的建业城中,有一条格格不入的长街,名曰跳蚤街,被战争所致的孤儿,聚集于此。全国的经济都在为战争服务之...
阅读全文
摘要:
陆伯言军陷八卦阵之中,分明只是一条直路,却怎的也走不到尽头。阵中尽是石堆,以某一石堆为参考,无论向走还是向右,总是会回到出发的石堆,最后幸得一黄姓老翁带路才得脱出。
陆伯言逃离八卦阵后,来到山顶观察此阵,记从左往右第i堆石堆的高度为Ai,发现任何两堆较矮的石堆都能和它们之间的一座较高的石堆形成"八卦锁",将其中之人牢牢锁住,无从逃脱。
根据石堆的情况,陆伯言大致计算了“八卦锁”的数量(即 AiAk,ijk 的组合数),不禁心中一惊,对孔明惊为天人,遂放弃追击,收兵回吴。
阅读全文
陆伯言军陷八卦阵之中,分明只是一条直路,却怎的也走不到尽头。阵中尽是石堆,以某一石堆为参考,无论向走还是向右,总是会回到出发的石堆,最后幸得一黄姓老翁带路才得脱出。
陆伯言逃离八卦阵后,来到山顶观察此阵,记从左往右第i堆石堆的高度为Ai,发现任何两堆较矮的石堆都能和它们之间的一座较高的石堆形成"八卦锁",将其中之人牢牢锁住,无从逃脱。
根据石堆的情况,陆伯言大致计算了“八卦锁”的数量(即 AiAk,ijk 的组合数),不禁心中一惊,对孔明惊为天人,遂放弃追击,收兵回吴。
阅读全文
摘要:1012: [JSOI2008]最大数maxnumberTime Limit: 3 SecMemory Limit: 162 MBSubmit: 4750Solved: 2145[Submit][Status][Discuss]Description现在请求你维护一个数列,要求提供以下两种操作: 1...
阅读全文
摘要:A Simple Problem with IntegersTime Limit: 5000/1500 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4000Accepted Submiss...
阅读全文
摘要:B - Weapon Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionIn World War 3, your countries' scientists have i...
阅读全文
摘要:Sequence IITime Limit: 5000/2500 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 652Accepted Submission(s): 164Problem D...
阅读全文

浙公网安备 33010602011771号