依然改题中,状态不错,改了三题,但还需更认真 题目: test: 这是道思维题,我这种没智商的人永远想不到,推荐一下微改题:bzoj4104(权限) 以后这种题多观察,多尝试,别放弃,可能多想一想就会出来了,多注意题目给的细节。 road: 我才发现我考试看错题了(我没打),线段树的用法真是博大精深 ...
分类:
其他好文 时间:
2018-09-13 01:10:06
阅读次数:
212
枚举起点做spfa,然后一条边在最短路上的条件是dis[e[i].to]==dis[u]+e[i].va,所以每次spfa完之后,dfs出a[i]表示经过i点的最短路的起点数,b[i]表示经过i点的最短路的终点数,一条边(u,v)在当前起点下的答案就是a[u] b[v],最终答案是总和 因为最短路构 ...
分类:
其他好文 时间:
2018-09-08 16:00:23
阅读次数:
166
262144K There are NN cities in the country, and MM directional roads from uu to v(1\le u, v\le n)v(1≤u,v≤n). Every road has a distance c_ici?. Haze is ...
分类:
其他好文 时间:
2018-09-04 21:41:11
阅读次数:
333
删除路线站点关系 DELETE FROM tb_station_info_draw WHERE id in (SELECT stationId FROM tb_road_station_relation_draw WHERE cityId=283 AND roadId=46); DELETE FRO ...
分类:
其他好文 时间:
2018-08-29 13:58:24
阅读次数:
164
#include<bits/stdc++.h>using namespace std;string goods,sister[100010];int x,m;unordered_map<string,int>mp;vector<int>g[100010],great,les;int road(){ ...
分类:
其他好文 时间:
2018-08-25 14:22:04
阅读次数:
163
Description N cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated with it : the road length an ...
分类:
其他好文 时间:
2018-08-19 20:56:13
阅读次数:
183
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