Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

041 - Piles in AtCoder Farm(★7)凸包の解説に誤り? #29

Open
toast-uz opened this issue Sep 15, 2022 · 0 comments
Open

041 - Piles in AtCoder Farm(★7)凸包の解説に誤り? #29

toast-uz opened this issue Sep 15, 2022 · 0 comments

Comments

@toast-uz
Copy link

凸包の作成の解説において、
(1)「x座標の昇順にソートした上で」
と書かれていますが、正しくは
(2)「(x座標、y座標)の組で昇順にソートした上で」
と思われます。

・サンプルソースは、上記(2)でソートされていることを確認
・サンプルソースではACするが、上記(1)に修正したらWAが出ることを確認
・x軸のみソートするのでは不正解になるテストケースを考案
4
0 0
0 1
0 -1
1 0

解説をもとにPythonで解答を考えている上で、どうしてもWAが消えきらず、考察していて上記が判明しました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant