109 - SCUD Busters
Moderator: Board moderators
-
- New poster
- Posts: 10
- Joined: Mon Jul 01, 2002 11:15 pm
- Location: Germany
Problem 109 - SCUD Busters
Maybe someone can give me this information
The wall, eg. the polygon surrounding all the houses, should it be
convex ?
The wall, eg. the polygon surrounding all the houses, should it be
convex ?
-
- Guru
- Posts: 724
- Joined: Wed Dec 19, 2001 2:00 am
- Location: Germany
-
- New poster
- Posts: 6
- Joined: Fri Jul 26, 2002 6:42 pm
109
What are we supposed to do in the case of a shot on the perimeter of the kingdom? I'm getting WA and I can't find a bug anywhere in my code unless the shot is on one of the edges or vertices, which really complicates things. Thanks.
Brian
Brian
Are there any tricky inputs in 109 - SCUD Busters ?
WA again & again, but my programm passes all my tests
109 - SCUD Busters
hi~
I am trying to solve this problem but I keep receiving WA.
I really don't know why my solution doesn't work.
In the problem description,
Each SCUD missile (anitary leansing niversal estroyer) that lands within the walls of a kingdom destroys that kingdom's power plant (without loss of life).
when missile launched at one of the points that compose of Convexhull,
the kingdom is not destroyed.. right? If the missile fired at the position of
power plant that is also a point composing of Convexhull, is the kingdom
destroyed?
my test input file and output are below. plz answer me.
12
3 3
4 6
4 11
4 8
10 6
5 7
6 6
6 3
7 9
10 4
10 9
1 7
5
20 20
20 40
40 20
40 40
30 30
3
10 10
21 10
21 13
10
100 101
200 195
143 199
111 200
107 154
132 102
101 223
110 155
118 107
102 148
-1
3 3
20 40
150 150
output
6961.00
12
3 3
4 6
4 11
4 8
10 6
5 7
6 6
6 3
7 9
10 4
10 9
1 7
5
20 20
20 40
40 20
40 40
30 30
3
10 10
21 10
21 13
10
100 101
200 195
143 199
111 200
107 154
132 102
101 223
110 155
118 107
102 148
-1
6 6
20 40
110 195
output
0.00
I am trying to solve this problem but I keep receiving WA.
I really don't know why my solution doesn't work.
In the problem description,
Each SCUD missile (anitary leansing niversal estroyer) that lands within the walls of a kingdom destroys that kingdom's power plant (without loss of life).
when missile launched at one of the points that compose of Convexhull,
the kingdom is not destroyed.. right? If the missile fired at the position of
power plant that is also a point composing of Convexhull, is the kingdom
destroyed?
my test input file and output are below. plz answer me.
12
3 3
4 6
4 11
4 8
10 6
5 7
6 6
6 3
7 9
10 4
10 9
1 7
5
20 20
20 40
40 20
40 40
30 30
3
10 10
21 10
21 13
10
100 101
200 195
143 199
111 200
107 154
132 102
101 223
110 155
118 107
102 148
-1
3 3
20 40
150 150
output
6961.00
12
3 3
4 6
4 11
4 8
10 6
5 7
6 6
6 3
7 9
10 4
10 9
1 7
5
20 20
20 40
40 20
40 40
30 30
3
10 10
21 10
21 13
10
100 101
200 195
143 199
111 200
107 154
132 102
101 223
110 155
118 107
102 148
-1
6 6
20 40
110 195
output
0.00
-
- Experienced poster
- Posts: 167
- Joined: Fri Oct 19, 2001 2:00 am
- Location: Saint Petersburg, Russia
Hi!
Hi!
I am also trying to solve this problem...
I don't know what's wrong...
If SCUD hits the wall than is it counter as it hit the convex polygon or not ??
Could anyone who got AC tell me what is is output for this input:
Thanks in advance
I am also trying to solve this problem...
I don't know what's wrong...
If SCUD hits the wall than is it counter as it hit the convex polygon or not ??
Could anyone who got AC tell me what is is output for this input:
And could anyone give the right answers for seolv's inputs..4
0 0
1 1
1 0
0 1
4
10 10
20 10
20 20
10 20
-1
1 1
15 10
Thanks in advance
a hint
I also got AC, but my solution prints 0.00 on the last test posted.
So I think that it is counted to be hitten if the position is inside the walls,
not on a site.
So I think that it is counted to be hitten if the position is inside the walls,
not on a site.