摘要:
并查集的离线算法。题意是大坑。理解为寻找两点之间所有路径中的最长的边的值小于输入的值的点对的个数。直接来代码。#include#include#includeusing namespace std;struct ab{ int a,b,c;};int n;struct ab poi[50050... 阅读全文
posted @ 2015-05-20 21:41 tun~ 阅读(204) 评论(0) 推荐(0)
|
|
摘要:
并查集的离线算法。题意是大坑。理解为寻找两点之间所有路径中的最长的边的值小于输入的值的点对的个数。直接来代码。#include#include#includeusing namespace std;struct ab{ int a,b,c;};int n;struct ab poi[50050... 阅读全文
posted @ 2015-05-20 21:41 tun~ 阅读(204) 评论(0) 推荐(0) |
|