编程及软件开发解决方案库

2000万优秀解决方案库,覆盖所有编程及软件开发类,极速查询

今日已更新 1554 篇代码解决方案

  • 1:HDU1542 【线段树+扫描线】

                        #include<iostream>#include<cstdio>#include<algorithm>using namespace std;#define L(k) k<<1#define R(k) k<<1|1const int NO=205;struct X{    i

    https://www.u72.net/daima/namcb.html - 2024-07-31 05:50:09 - 代码库
  • 2:POJ 3304 segments 线段和直线相交

                        SegmentsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 14178 Accepted: 4521DescriptionGiven n segments in the

    https://www.u72.net/daima/nda4f.html - 2024-09-28 18:07:39 - 代码库
  • 3:FZU 2079 最大获利(线段树+DP)

                        DescriptionSean准备投资一些项目。有n个投资项目,投资第i个项目需要花费Ci元。Sean发现如果投资了某些编号连续的项目就能赚得一定的钱。现在给出m组连

    https://www.u72.net/daima/ndz91.html - 2024-08-04 17:51:29 - 代码库
  • 4:[POJ] 2352 Stars [线段树区间求和]

                        StarsDescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates

    https://www.u72.net/daima/ndze0.html - 2024-08-04 17:53:15 - 代码库
  • 5:德莱联盟 计算几何 线段相交

                        难度:1 描述欢迎来到德莱联盟。。。。德莱文。。。德莱文在逃跑,卡兹克在追。。。。我们知道德莱文的起点和终点坐标,我们也知道卡兹克的起点和

    https://www.u72.net/daima/nkm5m.html - 2024-09-28 15:21:02 - 代码库
  • 6:hdu 2795 Billboard(线段树单点更新)

                        BillboardTime Limit: 20000/8000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14337    Accepted Submiss

    https://www.u72.net/daima/nc246.html - 2024-10-11 10:31:39 - 代码库
  • 7:hdu1754 I Hate It(线段树)

                        题目意思:http://acm.hdu.edu.cn/showproblem.php?pid=1754很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让

    https://www.u72.net/daima/nfc5w.html - 2024-08-07 03:05:46 - 代码库
  • 8:HDU 4366 Successor( DFS序+ 线段树 )

                        SuccessorTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2631    Accepted Submissio

    https://www.u72.net/daima/nb6vc.html - 2024-08-06 13:23:40 - 代码库
  • 9:ZOJ 3686 A Simple Tree Problem(线段树)

                        A Simple Tree ProblemTime Limit: 3 Seconds      Memory Limit: 65536 KBGiven a rooted tree, each node has a boolean (0 or 1) labeled on

    https://www.u72.net/daima/nb96c.html - 2024-10-05 11:22:02 - 代码库
  • 10:线段树扫描线(hdu1542)

                         There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of par

    https://www.u72.net/daima/nc07w.html - 2024-10-11 04:33:39 - 代码库
  • 11:[BZOJ 3747] [POI 2015] Kinoman【线段树】

                        Problem Link : BZOJ 3747 题解:ZYF-ZYF 神犇的题解  解题的大致思路是,当区间的右端点向右移动一格时,只有两个区间的左端点对应的答案发生了变化。 

    https://www.u72.net/daima/nb3f6.html - 2024-08-06 10:31:42 - 代码库
  • 12:HDU 1754(线段树区间最值)

                        I Hate ItTime Limit: 9000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 48513    Accepted Subm

    https://www.u72.net/daima/ncrkk.html - 2024-10-10 08:05:02 - 代码库
  • 13:hdu1754 I hate it (线段树)

                        I Hate ItTime Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 55291 Accepted Submissio

    https://www.u72.net/daima/nccsx.html - 2024-10-10 05:48:39 - 代码库
  • 14:HDU 5125 magic balls(线段树+DP)

                        magic ballsTime Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 323    Accepted Submissi

    https://www.u72.net/daima/nd46v.html - 2024-08-05 10:00:26 - 代码库
  • 15:线段树 逆序 单点更新 PKU 2828

                        Buy TicketsTime Limit: 4000MS Memory Limit: 65536KTotal Submissions: 14077 Accepted: 7060DescriptionRailway tickets were difficult to buy ar

    https://www.u72.net/daima/nfzem.html - 2024-08-06 21:35:54 - 代码库
  • 16:POJ1066 Treasure Hunt(线段相交)

                        题目链接:  http://poj.org/problem?id=1066题目描述:Treasure Hunt DescriptionArcheologists from the Antiquities and Curios Museum (ACM)

    https://www.u72.net/daima/nfknh.html - 2024-10-06 06:10:01 - 代码库
  • 17:线段树 Mayor's posters

                        甚至DFS也能过吧Mayor‘s posters POJ - 2528 The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campa

    https://www.u72.net/daima/nwf0c.html - 2024-11-05 07:13:39 - 代码库
  • 18:poj2763(lca / RMQ + 线段树)

                        题目链接: http://poj.org/problem?id=2763 题意: 第一行输入 n, q, s 分别为树的顶点个数, 询问/修改个数, 初始位置. 接下来 n - 1 行形如 x, y, w

    https://www.u72.net/daima/nwz93.html - 2024-11-04 02:53:39 - 代码库
  • 19:Such Sequence 线段树暴力

                        题意:n个数 初始为0,三个操作:给某个数加上d,查询区间和,把区间[l,r]中每个a[i]变为离a[i]最近的斐波那契数,n,m<=1e5.无操作1情况下,每个点最多变化

    https://www.u72.net/daima/nwhwc.html - 2024-11-04 06:24:38 - 代码库
  • 20:错误记录加强版

    <em>线段</em>树四倍  <em>线段</em>树四倍  <em>线段</em>树四倍  <em>线段</em>树四倍  <em>线段</em>树四倍  <em>线段</em>树四倍  <em>线段</em>树四倍  <em>线段</em>树四倍  <em>线段</em>树四倍  <em>线段</em>树四倍  <em>线段</em>树四倍  <em>线段</em>树四

    https://www.u72.net/daima/nz8hc.html - 2024-09-22 22:17:42 - 代码库