Hello,
I've been trying for some time to solve this problem, and i have no idea, why i get WA all the time. Is there any trick in this task? I solve it with DP, for each k and l, i find the maximum number of ridings, if you can use k avenues to divide, and the last to the north would be l avenue. Do I have to choose avenues 1 and 100 too? (i tried both versions).
Best regards,
Furippo
10558 - A Brief Gerrymander
Moderator: Board moderators
-
- Experienced poster
- Posts: 151
- Joined: Wed Aug 21, 2002 12:07 am
- Location: Seoul, Korea
- Contact:
Go to Waterloo contest website at http://plg.uwaterloo.ca/~acm00
and you will find all source codes and input datas.
But be sure not to spoil your "fun" by looking over solutions.![:wink:](./images/smilies/icon_wink.gif)
However, after I solve problems from Waterloo contest I always check out their solutions: they are quite impressive often.
and you will find all source codes and input datas.
But be sure not to spoil your "fun" by looking over solutions.
![:wink:](./images/smilies/icon_wink.gif)
However, after I solve problems from Waterloo contest I always check out their solutions: they are quite impressive often.
JongMan @ Yonsei
Re: 10558 - A Brief Gerrymander
1. Do Avenues run from South to North and Streets from West to East?
To put it simply, Avenues are vertical lines and Streets are horizontals, right?
2. "Riding" is a large rectangle we have obtained by S horizontal and A vertical cuts?
To put it simply, Avenues are vertical lines and Streets are horizontals, right?
2. "Riding" is a large rectangle we have obtained by S horizontal and A vertical cuts?
Re: 10558 - A Brief Gerrymander
Maybe this part of task could be helpful for those of you, who get WA
"The city is bounded by four roads: 1st Street (west edge), 100th Street (east edge), 1st Avenue (south edge), 100th Avenue (north edge). Clearly these four roads must represent district boundaries;".
"The city is bounded by four roads: 1st Street (west edge), 100th Street (east edge), 1st Avenue (south edge), 100th Avenue (north edge). Clearly these four roads must represent district boundaries;".
Re: 10558 - A Brief Gerrymander
that's a useful hintMaybe this part of task could be helpful for those of you, who get WA
"The city is bounded by four roads: 1st Street (west edge), 100th Street (east edge), 1st Avenue (south edge), 100th Avenue (north edge). Clearly these four roads must represent district boundaries;".
An Overview of Mobile Phone Signal Booster
Mobile Phone Signal Booster[/url] a Solution to Poor Signal? http://gizmolord.com/mobile-phone-signa ... or-signal/
Mobile Phone Signal Booster[/url] a Solution to Poor Signal? http://gizmolord.com/mobile-phone-signa ... or-signal/