A - Garden Problem Statement There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a ho ...
分类:
其他好文 时间:
2018-08-19 17:09:13
阅读次数:
301
A:CSU 1547: Rectangle (思维题加一点01背包)B:1548: Design road (思维题 做法:三分找极值)C:1549: Navigition Problem (几何计算+模拟 细节较多)D;1550: Simple String (做得少的思维题,两个字符串能否组成另... ...
分类:
其他好文 时间:
2018-08-18 22:29:57
阅读次数:
257
1548: Design road Submit Page Summary Time Limit: 2 Sec Memory Limit: 256 Mb Submitted: 450 Solved: 237 Description You need to design road from (0, 0 ...
分类:
其他好文 时间:
2018-08-18 21:21:57
阅读次数:
183
Making the Grade (简洁题意请往下翻) Description A straight dirt road connects two fields on FJ's farm, but it changes elevation more than FJ would like. His c ...
分类:
其他好文 时间:
2018-08-18 14:26:20
阅读次数:
263
题面 "题目传送门" 解法 先把边转化成区间 其实我们只要计算$\sum_{i=l}^{r 1}\sum_{j=i+1}^{r}sum(i,j)$ 把式子拆开,可以得到$(l+r)\sum w_i i (l+1)(r 1)\sum w_i \sum w_i i^2$ 用线段树分别维护这三个值即可 时 ...
分类:
其他好文 时间:
2018-08-14 20:04:24
阅读次数:
124
题意 两列$n$的排列,相同的数连边,如果一对数有交叉且差的绝对值$>k$,则$++ans$,求$ans$ ...
分类:
其他好文 时间:
2018-08-12 12:05:42
阅读次数:
136
#include<bits/stdc++.h>using namespace std;const int inf=0x3f3f3f3f;struct node{ int v,z,d,next;//存可以连接的点,用next存邻接表}a[10010];struct road{ int u,cnt,di ...
分类:
其他好文 时间:
2018-08-04 21:42:21
阅读次数:
222
问题 C: Restoring Road Network 题目描述 In Takahashi Kingdom, which once existed, there are N cities, and some pairs of cities are connected bidirectionally ...
分类:
Web程序 时间:
2018-07-31 17:15:21
阅读次数:
187
题目链接: https://cn.vjudge.net/problem/POJ-1724 N cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associ ...
分类:
其他好文 时间:
2018-07-28 20:33:11
阅读次数:
208
实现上述组件的多选和反选效果 1.html 代码 <input id="roadClass" name="road" /> <div id="Toolbutton" style="padding: 5px;"> <label class="mr-10" id="allChoose">全选</labe ...
分类:
其他好文 时间:
2018-07-25 19:04:19
阅读次数:
279