摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<iostream>#include<cstdio>usingnamespacestd;intmain(){intt;intn;scanf("%d",&... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<iostream>usingnamespacestd;intmod;voidmulMatrix(longlonga[][2],longlongb[][2]){longlo... 阅读全文
摘要:
通过三角形相似的性质,设要求的边为w,推出以下方程c * sqrt(x * x - w * w) + c * sqrt(y*y -w*w) - sqrt(x * x - w * w) * sqrt(y * y - w * w)w的上届是x,y中较小值(斜边大于直角边),然后二分该方程。代码Code highlighting produced by Actipro CodeHighlighter (... 阅读全文
摘要:
思路:先建图,建图的根据是判断两点的连线是否和线段有交,如果没交则计算两点的距离,然后做最短路。 贴了个求交的模板,所以代码有点多,我懒了。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<iostream>#inclu... 阅读全文