
题库-ZOJ
文章平均质量分 90
snowy_smile
终于在ICPC World Final里拿到了气球!
再努力一点吧,坚持下去吧,梦想是会实现的! 人生会有低谷,但我更相信,未来也会有更多梦想能够实现~
展开
-
【ZOJ3916 2016年浙大2月月赛B】【贪心 STL-SET】Buy Cakes n蛋糕k张折扣券蛋糕双价最多能买蛋糕数
Buy CakesTime Limit: 2 Seconds Memory Limit: 65536 KB Andy is always a hungry man. He never stopped eating something sweet, expecially cakes.Yesterday his mother gave him some pocket原创 2016-03-01 17:53:59 · 2300 阅读 · 0 评论 -
【ZOJ3941 The 13th Zhejiang Provincial Collegiate Programming ContestF】【贪心 暴力】Kpop Music Party n段part
Kpop Music PartyTime Limit: 2 Seconds Memory Limit: 65536 KB Marjar University often hosts Kpop music festival. A Kpop music festival will last several days. During a Kpop festival, t原创 2016-04-26 18:45:58 · 1114 阅读 · 0 评论 -
【ZOJ3944 The 13th Zhejiang Provincial Collegiate Programming ContestI】【简单模拟】People Counting 照片人数统计 人
People CountingTime Limit: 2 Seconds Memory Limit: 65536 KB In a BG (dinner gathering) for ZJU ICPC team, the coaches wanted to count the number of people present at the BG. They did th原创 2016-04-26 18:47:06 · 726 阅读 · 0 评论 -
【ZOJ3946 The 13th Zhejiang Provincial Collegiate Programming ContestK】【最短路+贪心 or 最小树形图】Highway Proje
Highway ProjectTime Limit: 2 Seconds Memory Limit: 65536 KB Edward, the emperor of the Marjar Empire, wants to build some bidirectional highways so that he can reach other cities from原创 2016-04-26 18:47:55 · 703 阅读 · 0 评论 -
【ZOJ3947 The 13th Zhejiang Provincial Collegiate Programming ContestL】【水题】Very Happy Great BG 简单求和
Very Happy Great BGTime Limit: 2 Seconds Memory Limit: 65536 KB The summer training of ZJU ICPC in July is about to end. To celebrate this great and happy day, the coach of ZJU ICPC T原创 2016-04-26 18:48:24 · 593 阅读 · 0 评论 -
【ZOJ3948 The 17th Zhejiang University Programming Contest A】【暴力 or 讨论】Marjar Cola 瓶盖饮料换可乐
Marjar ColaTime Limit: 1 Second Memory Limit: 65536 KBMarjar Cola is on sale now! In order to attract more customers, Edward, the boss of Marjar Company, decides to launch a promotion: If原创 2017-04-12 17:01:10 · 1700 阅读 · 0 评论 -
【ZOJ3949 The 17th Zhejiang University Programming Contest B】【树形DP】Edge to the Root 树上加一边 根距离之和尽可能小
Edge to the RootTime Limit: 1 Second Memory Limit: 131072 KBGiven a tree with n vertices, we want to add an edge between vertex 1 and vertex x, so that the sum of d(1, v) for all vertices原创 2017-04-12 17:03:58 · 1146 阅读 · 0 评论 -
【ZOJ3950 The 17th Zhejiang University Programming Contest C】【简单日期模拟】How Many Nines 区间9个数计数
How Many NinesTime Limit: 1 Second Memory Limit: 65536 KBIf we represent a date in the format YYYY-MM-DD (for example, 2017-04-09), do you know how many 9s will appear in all the dates be原创 2017-04-12 17:10:00 · 854 阅读 · 0 评论 -
【ZOJ3951 The 17th Zhejiang University Programming Contest D】【树形DP 合并思想 复杂度计算】Independent Set 构造树使得不同
Independent SetTime Limit: 1 Second Memory Limit: 65536 KB Special JudgeChiaki has a positive integer m and she would like to construct a tree with at most 15 vertices in such a mann原创 2017-04-12 23:06:33 · 953 阅读 · 0 评论 -
【ZOJ3952 The 17th Zhejiang University Programming Contest E】【简单构造 模拟 or汇编】Fibonacci Sequence Chicken
Fibonacci Sequence Chicken EditionTime Limit: 1 Second Memory Limit: 65536 KB Special JudgeYear 2017 is the year of chicken, so in this problem we introduce you an interesting prog原创 2017-04-12 23:21:14 · 1089 阅读 · 0 评论 -
【ZOJ3953 The 17th Zhejiang University Programming Contest F】【贪心 or 费用流】Intervals 删最少线段使得每点最多2次覆盖
IntervalsTime Limit: 1 Second Memory Limit: 65536 KB Special JudgeChiaki has n intervals and the i-th of them is [li, ri]. She wants to delete some intervals so that there does n原创 2017-04-13 00:01:14 · 701 阅读 · 0 评论 -
【ZOJ3954 The 17th Zhejiang University Programming Contest G】【预处理 哈希 二分】Seven-Segment Display 矩阵列全排列的
Seven-Segment DisplayTime Limit: 1 Second Memory Limit: 65536 KBA seven segment display, or seven segment indicator, is a form of electronic display device for displaying decimal numerals原创 2017-04-13 09:56:08 · 898 阅读 · 0 评论 -
【ZOJ3955 The 17th Zhejiang University Programming Contest H】【二分 贡献计数】Saddle Point 鞍点贡献
Saddle PointTime Limit: 1 Second Memory Limit: 131072 KBChiaki has an n × m matrix A. Rows are numbered from 1 to n from top to bottom and columns are numbered from 1 to m from left to原创 2017-04-13 10:18:50 · 601 阅读 · 0 评论 -
【ZOJ3957 The 17th Zhejiang University Programming Contest J】【水题】Knuth-Morris-Pratt Algorithm
Knuth-Morris-Pratt AlgorithmTime Limit: 1 Second Memory Limit: 65536 KBIn computer science, the Knuth-Morris-Pratt string searching algorithm (or KMP algorithm) searches for occurrences原创 2017-04-13 10:32:23 · 574 阅读 · 0 评论 -
【ZOJ3940 The 13th Zhejiang Provincial Collegiate Programming ContestE】【脑洞 STL-MAP 复杂度分析 区间运算思想 双指针】M
Modulo QueryTime Limit: 2 Seconds Memory Limit: 65536 KB One day, Peter came across a function which looks like:F(1, X) = X mod A1.F(i, X) = F(i - 1, X) mod Ai, 2 ≤ i ≤ N.Where原创 2016-04-26 18:45:13 · 1207 阅读 · 2 评论 -
【ZOJ3939 The 13th Zhejiang Provincial Collegiate Programming ContestD】【日期前缀和预处理】The Lucky Week 第n个幸运
The Lucky WeekTime Limit: 2 Seconds Memory Limit: 65536 KB Edward, the headmaster of the Marjar University, is very busy every day and always forgets the date.There was one day Ed原创 2016-04-26 18:43:58 · 824 阅读 · 0 评论 -
【ZOJ3938 The 13th Zhejiang Provincial Collegiate Programming ContestC】【简单模拟】Defuse the Bomb 5个阶段正确决策
Defuse the BombTime Limit: 2 Seconds Memory Limit: 65536 KB The bomb is about to explode! Please defuse it as soon as possible!There is a display showing a number from 1 to 4 on the原创 2016-04-26 18:42:46 · 644 阅读 · 0 评论 -
【ZOJ3919 2016年浙大2月月赛E】【简单计算几何 贪心】Ellipse 椭圆内切圆外切平行四边形最大最小面积
EllipseTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeThere is an beautiful ellipse whose curve equation is: b > 0)">.There is a parallelogram named P inscribed in t原创 2016-03-01 17:57:01 · 1912 阅读 · 0 评论 -
【ZOJ3921 2016年浙大2月月赛I】【物理题 底乘高积分式思维】In the Rain 圆柱体人行走 吸收雨体积
In the RainTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeFujiwara no Mokou was formerly an ordinary human, but she became an immortal being after drinking the Hourai Elix原创 2016-03-01 18:00:10 · 981 阅读 · 0 评论 -
【ZOJ3921 2016年浙大2月月赛J】【题目观察 暴力 大组合数】Musical Notes n个数,数值为1 2 4 8 16,和恰为m方案数
Musical NotesTime Limit: 2 Seconds Memory Limit: 65536 KBBesides his skills of playing Hearthstone, Bob is also insterested in learning piano in order to make himself more charming, of co原创 2016-03-01 18:06:58 · 1302 阅读 · 0 评论 -
【ZOJ3921 2016年浙大2月月赛L】【随机化 答案猜解】Parity Modulo P 大数mod大数mod2
Parity Modulo PTime Limit: 2 Seconds Memory Limit: 131072 KBA Mersenne prime is a prime number of the form Mn = 2n − 1.This is to say that it is a prime number which is one less than a po原创 2016-03-01 18:07:45 · 1745 阅读 · 2 评论 -
【ZOJ3921 2016年浙大2月月赛G】【爆搜+智商贪心剪枝 好题】Guan Dan 2副牌取27张最少出光牌次数
Guan DanTime Limit: 2 Seconds Memory Limit: 65536 KBBob is playing a poker game called GuanDan. The rules are similar to PaoDeKuai and DouDiZhu. Basically, the game is played on two decks原创 2016-03-01 17:58:45 · 1277 阅读 · 0 评论 -
【ZOJ3927 The 16th Zhejiang University Programming ContestA】【水题】Programming Ability Test 简单求和比大小
Programming Ability TestTime Limit: 2 Seconds Memory Limit: 65536 KBProgramming Ability Test (PAT) aims to evaluate objectively, through unified examinations with automatic online judgi原创 2016-04-12 12:58:16 · 932 阅读 · 0 评论 -
【ZOJ3929 The 16th Zhejiang University Programming ContestC】【DP】Deque and Balls n个数放入双端队列2^n种方案有多少个位置
Deque and BallsTime Limit: 2 Seconds Memory Limit: 65536 KBThere are n balls, where the i-th ball is labeled as pi. You are going to put n balls into a deque. In the i-th turn, you ne原创 2016-04-12 13:07:18 · 783 阅读 · 0 评论 -
【ZOJ3930 The 16th Zhejiang University Programming ContestD】【模拟】Dice Notation 表达式转化标准格式
Dice NotationTime Limit: 2 Seconds Memory Limit: 65536 KB... I want to get some water from this strange lake. I have a bottle. OK. Then I want to go forward to look into the parte原创 2016-04-12 13:08:25 · 748 阅读 · 0 评论 -
【ZOJ3931 The 16th Zhejiang University Programming ContestE】【小根堆 哈夫曼树 DP】Exact Compression 建立哈弗曼树并编码0
#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin原创 2016-04-12 13:09:16 · 1207 阅读 · 0 评论 -
【ZOJ3932 The 16th Zhejiang University Programming ContestF】【水题】Handshakes 每人与之前认识的人握手 最大可能认识人数
HandshakesTime Limit: 2 Seconds Memory Limit: 65536 KBLast week, n students participated in the annual programming contest of Marjar University. Students are labeled from 1 to n. They cam原创 2016-04-12 13:11:48 · 1036 阅读 · 0 评论 -
【ZOJ3933 The 16th Zhejiang University Programming ContestG】【费用流】Team Formation 最多组队条件下女
Team FormationTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeFor an upcoming programming contest, Edward, the headmaster of Marjar University, is forming several two-man原创 2016-04-12 13:12:42 · 731 阅读 · 0 评论 -
【ZOJ3935 The 16th Zhejiang University Programming ContestI】【暴力 水题】2016 找寻triangular-hexagonal-leap y
2016Time Limit: 2 Seconds Memory Limit: 65536 KBIn mathematics, a polygonal number is a number represented as dots or pebbles arranged in the shape of a regular polygon. The dots are thou原创 2016-04-12 13:13:14 · 933 阅读 · 1 评论 -
【ZOJ3936 The 13th Zhejiang Provincial Collegiate Programming ContestA】【水题】Apples and Ideas 苹果交换与思想交换
Apples and IdeasTime Limit: 2 Seconds Memory Limit: 65536 KB "If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But原创 2016-04-26 10:12:58 · 567 阅读 · 0 评论 -
【ZOJ3956 The 17th Zhejiang University Programming Contest I】【01背包】Course Selection System 公式最大化
Course Selection SystemTime Limit: 1 Second Memory Limit: 65536 KBThere are n courses in the course selection system of Marjar University. The i-th course is described by two values: happ原创 2017-04-13 10:30:14 · 912 阅读 · 2 评论