eg:用-替-换字符串里的特殊字符,并进行切分(括号里的不能替换) String roads = "G6包头..。?九原收费站((这个是.。--.。?测试)——210国道——幸福南路(备注:车、货、路线不变,往-返)——210国道(((aa)——210国道(这样呢)"; 一。思路:1.找到括号的区间 ...
分类:
其他好文 时间:
2019-08-21 11:36:04
阅读次数:
115
The Tourist Guide Mr. G. works as a tourist guide. His current assignment is to take some tourists from one city to another. Some two-way roads connec ...
分类:
其他好文 时间:
2019-08-16 22:45:48
阅读次数:
123
Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters in t ...
分类:
其他好文 时间:
2019-08-05 20:20:59
阅读次数:
145
题目链接:https://vjudge.net/problem/POJ-1251 题目大意 略。 分析 最小生成树模板题,数据规模也很小,这里我用了 Prim 算法。 代码如下 1 #include <cmath> 2 #include <ctime> 3 #include <iostream> 4 ...
分类:
其他好文 时间:
2019-08-02 20:50:52
阅读次数:
86
Description Japan plans to welcome the ACM ICPC World Finals and a lot of roads must be built for the venue. Japan is tall island with N cities on the ...
分类:
编程语言 时间:
2019-07-30 00:17:13
阅读次数:
151
Building and maintaining roads among communities in the far North is an expensive business. With this in mind, the roads are build such that there is ...
分类:
其他好文 时间:
2019-07-28 13:33:51
阅读次数:
116
// constructing vectors #include #include int main () { // constructors used in the same order as described above: std::vector first; // empty vector ... ...
分类:
编程语言 时间:
2019-07-21 10:51:47
阅读次数:
106
[Time Gate] https://www.luogu.org/problemnew/show/P2872 【解题思路】 一道最小生成树的基本题吧,这里要注意两点 1.数组范围要开大,毕竟是生成树,开n平方即可 2.求边上权值算两点之间距离要注意精度的问题,多强制转换几次(double)防止WA ...
分类:
其他好文 时间:
2019-07-14 23:55:02
阅读次数:
187
Linearly Separable Data Multiple Linear Questions Constructing a Decision Tree First Split Coding A Decision Tree Decision Tree Parameters Data Impuri ...
分类:
其他好文 时间:
2019-06-07 13:13:33
阅读次数:
83