ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1097. Square Country 2

HELP!
Posted by Roger 7 Jun 2001 12:09
I have a question what do I output, the sum of importance
or just a piece of land's importance?

The example is that:
 3   2   0   0   0
 2   2   0 100 100
 2   2   0 100 100
94  94   0   0   0
94  94   0   0 255

we have to select a land whose area is 3*3,how can I just
expropriate the land whose importance is 3?

I think the least importance is 3+2+2=7.


Thank you for answering my question?
Re: HELP!
Posted by Huang Yizheng 31 Oct 2001 04:52
> I have a question what do I output, the sum of importance
> or just a piece of land's importance?
>
> The example is that:
>  3   2   0   0   0
>  2   2   0 100 100
>  2   2   0 100 100
> 94  94   0   0   0
> 94  94   0   0 255
>
> we have to select a land whose area is 3*3,how can I just
> expropriate the land whose importance is 3?
>
> I think the least importance is 3+2+2=7.
>
>
> Thank you for answering my question?
You just misunderstood this problem,it says "The number and
area of expropriated pieces of land are not important. You
should only take into account importance of the most
important of the affected land-owners. "
Note you should only take into account importance of the
most important one.So the output is max{3,2,2}=3.
Re: HELP!
Posted by Evil Hacker 2 Aug 2003 20:32
<Min
Re: HELP!
Posted by Evil Hacker 2 Aug 2003 20:35
</PRE>
Re: HELP!
Posted by Evil Hacker 2 Aug 2003 20:35
</PRE>TraLaLa