Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: The Delivery of Control
Description The Gugoo Gang controls an area of Tom is asked to start a trip at a cross in the city, take a ride along the streets, and finally get back to his start point within As an environment protectionist, Tom assigns a satisfaction value to each block according to its greenness. He wants to maximize the sum of satisfaction values of his blocks. Input The first line contains three integers, Output One line contains the maximum sum. Sample Input 4 4 10 -1 2 1 1 2 -1 0 2 3 1 -1 1 2 2 1 -1 Sample Output 10 Source POJ Founder Monthly Contest – 2008.07.27, Facer and Dagger |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator