Jungle Roads Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5451    Accepted Submission(s): 3932 Problem Description
原创 2023-04-20 15:30:03
76阅读
Constructing Roads
原创 2023-04-20 17:47:44
74阅读
Building roads Problem Description Farmer John's farm has N barns, and there are some cows that live in each barn. The cows like to drop around, so Jo
转载 2017-02-24 18:39:00
124阅读
2评论
欢迎参加——每周六晚的BestCoder(有米!)Jung
转载 2015-08-11 19:15:00
74阅读
2评论
A - Jungle Roads A - Jungle Roads A - Jungle Roads 思路:并查集的板子,重点是字符的转换,不能忘了加上1。 #include<cmath> #include<cstdio> #include<cstdlib> #include<cstring> #i
转载 2018-02-23 08:01:00
66阅读
2评论
http://poj.org/problem?id=1724这道题我使用的是dijkstra,在处理进队列是条件是if(st2.c+c1 2 #include 3 #include 4 #include 5 #define maxn 20000 6 using namespace std; 7...
转载 2014-06-06 18:43:00
51阅读
2评论
POJ_1724     这个题目可以直接将SPFA中的dis[]变成二维的dis[i][k]表示到第i个点花费为k时的最短路,但如果直接做SPFA会超时,需要加一个剪枝:设mind[i]表示到第i个点的用于剪枝最短路,mink[i] 表示第i个点的用于剪枝的最小花费,如果在SPFA的过程中走到了第i个点的路径长为d花费为k,那么如果d>=mind[i]&&k>=min
转载 2012-01-30 22:54:00
114阅读
2评论
Description City X consists of n vertical and n horizontal infinite roads, forming n × n intersections. Roads (both vertical and horizontal) are numbe
转载 2018-04-03 23:07:00
26阅读
2评论
Dark roads Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
原创 2023-04-20 15:26:49
91阅读
题目链接:http://poj.org/problem?id=1724Time Limit:1000MSMemory Limit:65536KDescriptionN cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated w...
原创 2021-07-14 10:49:35
41阅读
ROADSTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 9118Accepted: 3383Description N cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated with it : the road length and the toll that needs to be paid for the road (expressed in the number Read More
转载 2013-07-23 19:03:00
171阅读
2评论
Dark roadsTime Limit : 2000/1000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 7Accepted Submission(s) : 2Problem Descri...
转载 2015-08-12 21:37:00
87阅读
2评论
洛谷 P2872 [USACO07DEC]道路建设Building Roads "洛谷传送门" JDOJ 2546: USACO 2007 Dec Silver 2.Building Roads "JDOJ传送门" Description Farmer John had just acquired
转载 2019-08-10 13:57:00
84阅读
2评论
SGU_206     不得不说这个题目的思想太奇葩,一时间还是不能很理解……     首先一个贪心的思路就是,石子路的d[i]一定是小于或等于c[i]的,而非石子路的d[j]是一定大于或等于c[j]的,如果我们用x[i]描述石子路谎报的增量那么有x[i]=c[i]-d[i],用y[j]描述非石子路谎报的增量那么有y[j]=d[j]-c[j],最后目标自然就是求sum{x[i]}+sum{y[j]
转载 2012-08-19 15:56:00
102阅读
2评论
D - Constructing Roads D - Constructing Roads D - Constructing Roads 思路:并查集板子 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm
转载 2018-02-23 10:13:00
40阅读
2评论
题目链接:http://poj.org/problem?id=1724Time Limit:1000MSMemory Limit:65536KDescriptionN cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated w...
原创 2022-02-03 15:07:19
13阅读
Constructing Roads Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 14269    Accepted Submission(s): 543
原创 2022-12-02 00:35:18
44阅读
最小生成树
原创 2023-02-17 08:53:53
32阅读
Description Once upon a time there was a strange kingdom, the kingdom had n cities which were connected by n directed roads and no isolated city.One d
原创 2021-07-21 16:01:30
49阅读
One Way Roads Time Limit:500MS Memory Limit:32768KB 64bit IO Format:%lld & %llu Submit Status Practice LightOJ 1049 One Way Roads Submit Status Practi
转载 2016-04-14 13:18:00
69阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5