
pat
whisperlzw
这个作者很懒,什么都没留下…
展开
-
pat-top 1001 Battle Over Cities - Hard Version (最小生成树)
1001 Battle Over Cities - Hard Version (35 分)It is vitally important to have all the cities connected by highways in a war. If a city is conquered by the enemy, all the highways from/toward that cit...原创 2019-02-14 20:29:00 · 395 阅读 · 0 评论 -
pat-top 1002 Business(01背包)
1002 Business (35 分)As the manager of your company, you have to carefully consider, for each project, the time taken to finish it, the deadline, and the profit you can gain, in order to decide if yo...原创 2019-02-15 00:05:50 · 220 阅读 · 0 评论 -
pat-top 1003 Universal Travel Sites (最大流)
1003 Universal Travel Sites (35 分)After finishing her tour around the Earth, CYLL is now planning a universal travel sites development project. After a careful investigation, she has a list of capac...原创 2019-02-15 20:37:43 · 3795 阅读 · 0 评论 -
pat甲级1007 Maximum Subsequence Sum (动态规划)
1007 Maximum Subsequence Sum (25 分)Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1≤i≤j≤K. The Maximum Su...原创 2019-02-13 11:24:26 · 244 阅读 · 0 评论 -
pat甲级1001 A+B Format (20 分)
1001 A+B Format (20 分)Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Input Spe...原创 2019-02-13 11:40:31 · 110 阅读 · 0 评论 -
pat甲级1002 A+B for Polynomials (多项式加法)
1002 A+B for Polynomials (25 分)This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, a...原创 2019-02-13 12:08:26 · 218 阅读 · 0 评论 -
天梯赛L2-001 紧急救援 (强化版pat甲级1003 Emergency)
L2-001 紧急救援 (25 分)作为一个城市的应急救援队伍的负责人,你有一张特殊的全国地图。在地图上显示有多个分散的城市和一些连接城市的快速道路。每个城市的救援队数量和每一条连接两个城市的快速道路长度都标在地图上。当其他城市有紧急求助电话给你的时候,你的任务是带领你的救援队尽快赶往事发地,同时,一路上召集尽可能多的救援队。输入格式:输入第一行给出4个正整数N、M、S、D,其中N(2...原创 2019-02-13 12:39:06 · 193 阅读 · 0 评论 -
pat甲级1004 Counting Leaves (建图+dfs)
1004 Counting Leaves (30 分)A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains on...原创 2019-02-13 13:02:13 · 124 阅读 · 0 评论