10772 - Rose windows
Moderator: Board moderators
10772 - Rose windows
Please give hint how to solve this problem.I can't find how changed radius.
Thanks.
Thanks.
someone who like to solve informatic problems.
http://acm.uva.es/cgi-bin/OnlineJudge?AuthorInfo:29650
http://acm.uva.es/cgi-bin/OnlineJudge?AuthorInfo:29650
radius...not needed
I actually found the chord lengths of each smaller circles and then found the radius correspondingly.
If you follow closely, you will see a pattern of how the smaller polygons form.
The vertices of the smaller polygons are formed from the intersections of the lines joining the vertices of the main polygon.
Hope it helps.
If you follow closely, you will see a pattern of how the smaller polygons form.
The vertices of the smaller polygons are formed from the intersections of the lines joining the vertices of the main polygon.
Hope it helps.

My way.
Greetings!
Hey Sohel!
I had a different approach for this problem.
I worked only with the "apotemas" (it's like the height of the triangles that form a regular polygon, don't know how to translate it) and the radius of the polygons.
You MAY see the pattern to build the smaller polygons from the main polygon (the big one) in the example drawn in the problem.
Just to be sure I had the right idea, I draw in paper a "dec
Hey Sohel!
I had a different approach for this problem.
I worked only with the "apotemas" (it's like the height of the triangles that form a regular polygon, don't know how to translate it) and the radius of the polygons.
You MAY see the pattern to build the smaller polygons from the main polygon (the big one) in the example drawn in the problem.
Just to be sure I had the right idea, I draw in paper a "dec
_.
10772 Sample Output is OK?
Input
9.238794 8 2
Output
100.0000
Is is OK?
I think "input" will be "9.238794 8 3" to get that "output".
9.238794 8 2
Output
100.0000
Is is OK?
I think "input" will be "9.238794 8 3" to get that "output".
in/out of my code, in:
out:
Code: Select all
9.238794 8 2
9.238794 8 3
Code: Select all
0.0668
100.0000
I'm getting WA in this problem. Can anyone check these i/o please.
Input:
Output:
Regards
Sanny
Input:
Code: Select all
22
100 40 1
100 40 2
100 40 3
100 40 5
100 40 10
100 40 20
100 40 15
100 40 19
100 38 1
100 38 2
100 38 4
100 38 9
100 38 18
50 6 1
50 6 2
50 6 3
50 8 3
9.238794 8 2
10 4 1
20 4 1
50 6 2
50 6 3
Code: Select all
193.7897
576.5974
945.2074
1604.1015
2462.3319
30633.7542
1878.1616
576.5974
214.7256
638.3196
1422.1929
2564.7697
638.3196
2165.0635
4330.1270
6771.4499
2928.9322
100.0000
200.0000
800.0000
4330.1270
6771.4499
Sanny
-
- New poster
- Posts: 50
- Joined: Wed Nov 06, 2002 1:37 pm
- Location: Planet Earth, Universe
- Contact:
My AC code gives this output
Code: Select all
193.7897
576.5974
945.2074
1604.1015
2462.3319
129.0335
1878.1616
576.5974
214.7256
638.3196
1422.1929
2564.7697
638.3196
2165.0635
4330.1270
1358.7911
2928.9322
100.0000
200.0000
800.0000
4330.1270
1358.7911