HDU--1115

Revision en3, by xiaowu5933, 2023-01-15 18:18:12

Hello everyone, can anybody help me with this problem : https://vjudge.net/problem/HDU-1115

After searching on gg in the afternoon, I found around to solve this: https://math.stackexchange.com/questions/90463/how-can-i-calculate-the-centroid-of-polygon.

But after submitting, I don't know why I get the wrong answer, I think I can have some errors with my Complex struct, but I'm not sure, please help me. Thank you!

This is my code : https://codeforces.me/contest/119/submission/189358165

Sorry my English is not good.

Tags geometry

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English xiaowu5933 2023-01-15 18:18:12 79
en2 English xiaowu5933 2023-01-15 18:16:48 23 Tiny change: '/HDU-1115 \\\nAfter se' -> '/HDU-1115 '\\'\nAfter se' (published)
en1 English xiaowu5933 2023-01-15 18:11:45 453 Initial revision (saved to drafts)