第一篇题解无法通过了

P2742 [USACO5.1] 圈奶牛Fencing the Cows /【模板】二维凸包

@[ShineEternal](/user/45475) @[WYXkk](/user/130151)
by __vector__ @ 2022-08-04 12:37:56


即使数组开够了 #2 也仍然 WA
by __vector__ @ 2022-08-04 12:41:21


题解质量这么高 个人觉得还是先别撤下来吧
by _XHY20180718_ @ 2022-08-04 12:56:42


@[xiehuiying](/user/399475) qs,好久没看见这么好的题解啦
by 虚空星胜 @ 2022-08-04 13:01:43


@[虚空星胜](/user/528278) @[xiehuiying](/user/399475) qs
by __vector__ @ 2022-08-04 13:07:11


@[__vector__](/user/507348) 能说说这篇题解怎么82的吗![](//啧.tk/jk)
by Etinorally @ 2022-08-04 13:31:52


@[bye_wjx](/user/575994) ?
by __vector__ @ 2022-08-04 13:56:00


好像坐标全是x全是0或者y全是0有问题
by 路过的菜鸟 @ 2022-08-07 23:07:29


@[__vector__](/user/507348) 将第一篇题解改2个地方就能A ```cpp if(tmp==0&&d(p[0],p1)<d(p[0],p2)) ------------ if(tmp==0&&d(p[1],a)<d(p[1],b)) ``` ```cpp if(i!=1&&p[i].y<p[1].y) ------------ if(i!=1) if((p[i].y<p[1].y)||(p[i].y==p[1].y&&p[i].x<p[1].x)) ```
by Hhggi @ 2022-08-12 10:36:03


|