- 博客(25)
- 收藏
- 关注
原创 PAT L2-005. 集合相似度
题目链接<https://www.patest.cn/contests/gplt/L2-005>L2-005. 集合相似度时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越给定两个整数集合,它们的相似度定义为:Nc/Nt*100%。其中Nc是两个集合都有的不相等整数的个数,Nt是两个集合一共有的不相等整数的个数。你的任务就是计算任意一对...
2018-03-30 09:47:45 227
原创 HDU 1233 还是畅通工程
来源<http://acm.hdu.edu.cn/showproblem.php?pid=1233> 还是畅通工程 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 53676 Accepted Submi...
2018-03-29 14:12:15 127
原创 PAT L2-002. 链表去重
题目链接<https://www.patest.cn/contests/gplt/L2-002>L2-002. 链表去重时间限制300 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越给定一个带整数键值的单链表L,本题要求你编写程序,删除那些键值的绝对值有重复的结点。即对任意键值K,只有键值或其绝对值等于K的第一个结点可以被保留。同时,所有被删除的结...
2018-03-29 14:11:50 134
原创 PAT L2-003. 月饼
题目链接<https://www.patest.cn/contests/gplt/L2-003>L2-003. 月饼时间限制100 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越月饼是中国人在中秋佳节时吃的一种传统食品,不同地区有许多不同风味的月饼。现给定所有种类月饼的库存量、总售价、以及市场的最大需求量,请你计算可以获得的最大收益是多少。注意:销...
2018-03-29 13:04:50 184
原创 HDU 1874 畅通工程续(Floyd & Dijstra & SPFA)
题目链接<http://acm.hdu.edu.cn/showproblem.php?pid=1874> 畅通工程续 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 63250 Accepted Subm...
2018-03-29 11:07:14 154
原创 团体程序设计天梯赛-练习集 L1合集
来自<https://www.patest.cn/contests/gplt>L1-001. Hello World这道超级简单的题目没有任何输入。你只需要在一行中输出著名短句“Hello World!”就可以了。时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard#include <iostream>#include <cs...
2018-03-28 13:15:28 847
原创 POJ 1789 Truck History
Truck HistoryTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 31312 Accepted: 12235DescriptionAdvanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are used for vegetable ...
2018-03-22 20:07:52 77
原创 ZOJ 1586 QS Network
来源<http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1586>QS NetworkTime Limit: 2 Seconds Memory Limit: 65536 KBSunny Cup 2003 - Preliminary RoundApril 20th, 12:00 - 17:00Problem...
2018-03-22 19:28:49 109
原创 POJ 2421 Constructing Roads
来源<http://poj.org/problem?id=2421>Constructing RoadsTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 26338 Accepted: 11536DescriptionThere are N villages, which are numbered from 1 to N...
2018-03-22 18:53:08 86
原创 POJ 2031 Building a Space Station
来源<http://poj.org/problem?id=2031>Building a Space StationTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 11374 Accepted: 5236DescriptionYou are a member of the space station engineeri...
2018-03-22 18:05:27 184
原创 POJ 3984 迷宫问题
迷宫问题Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 28913 Accepted: 16657Description定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0...
2018-03-22 13:04:57 158
原创 HDU 1241 Oil Deposits
来自<http://acm.hdu.edu.cn/showproblem.php?pid=1241>Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 37976 Accepted Submission...
2018-03-22 13:04:48 121
原创 FZU 2150 Fire Game
来自<http://acm.fzu.edu.cn/problem.php?pid=2150>Problem 2150 Fire GameAccept: 3098 Submit: 10707Time Limit: 1000 mSec Memory Limit : 32768 KB Problem DescriptionFat brother and Maze are play...
2018-03-22 13:04:38 96
原创 POJ 1251
来源<http://poj.org/problem?id=1251>Jungle RoadsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 29849 Accepted: 13957DescriptionThe Head Elder of the tropical island of Lagrishan has a p...
2018-03-22 13:04:13 218
原创 POJ 1287 Networking
来源<http://poj.org/problem?id=1287>NetworkingTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 14388 Accepted: 7625DescriptionYou are assigned to design network connections between certai...
2018-03-22 13:04:02 82
原创 POJ 3414 Pots
来自<http://poj.org/problem?id=3414>PotsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 20417 Accepted: 8686 Special JudgeDescriptionYou are given two pots, having the volume of A and B ...
2018-03-21 10:27:13 85
原创 POJ 1426 Find The Multiple
来自<http://poj.org/problem?id=1426>Find The MultipleTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 38108 Accepted: 15916 Special JudgeDescriptionGiven a positive integer n, write a pro...
2018-03-21 10:23:42 114
原创 POJ 3126 Prime Path
来自<http://poj.org/problem?id=3126>Prime PathTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 25025 Accepted: 13799DescriptionThe ministers of the cabinet were quite upset by the message...
2018-03-21 10:19:31 130
原创 POJ 3279 Fliptile
来自<http://poj.org/problem?id=3279>FliptileTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 13959 Accepted: 5153DescriptionFarmer John knows that an intellectually satisfied cow is a hap...
2018-03-21 10:14:57 117
原创 POJ 2251 Dungeon Master
来源<http://poj.org/problem?id=2251>Dungeon MasterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 42571 Accepted: 16111DescriptionYou are trapped in a 3D dungeon and need to find the qui...
2018-03-21 10:10:17 86
原创 HDU 2717 Catch That Cow
来源<http://acm.hdu.edu.cn/showproblem.php?pid=2717>Catch That CowTime Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 18326 Accepted Submissi...
2018-03-21 10:07:40 135
原创 HDU 1372 Knight Moves
来源<http://acm.hdu.edu.cn/showproblem.php?pid=1372>Knight MovesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12651 Accepted Submission...
2018-03-21 10:04:12 150
原创 HDU 1548 A strange lift
来自<http://acm.hdu.edu.cn/showproblem.php?pid=1548>A strange liftTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 30130 Accepted Submissi...
2018-03-21 10:00:55 86
原创 POJ 1321 棋盘问题
来自<http://poj.org/problem?id=1321>棋盘问题Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 57963 Accepted: 27887Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编...
2018-03-21 09:56:33 166
原创 HDU 1035 Robot
Robot MotionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12018 Accepted Submission(s): 5696Problem DescriptionA robot has been programmed ...
2018-03-21 09:45:13 121
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人