Search found 2 matches

by Willar
Sun Nov 07, 2004 6:39 am
Forum: Volume 104 (10400-10499)
Topic: 10406 - Cutting tabletops
Replies: 11
Views: 6995

LOL

area(p[1], p[0], p)

this should have been

area(p[0], p[(i+1)%n], p)

Accepted after this :)
by Willar
Wed Oct 27, 2004 12:05 pm
Forum: Volume 104 (10400-10499)
Topic: 10406 - Cutting tabletops
Replies: 11
Views: 6995

I keep getting WA... Is it possible for an admin to post some test cases? I'm losing my mind here :(

My idea:

I move the polygon sides 'd' centimeters through the inside, and then compute the intersections, being these the new vertices. Then, sum all sub-triangle's areas.

[cpp]
#include <iostream ...

Go to advanced search