0

can you help me with the task of a python?(collecting numbers)

In this task you have to find the path on 2D board filled with numbers that maximizes the sum of the numbers from fields you visit. You start in upper left corner and can only move down or right. Input Format: The first line contains number , the size of the array. Each of the next lines contains integers separated by spaces. Output Format: Print one number, that is the miximal possible sum. Sample input: 3 10 15 9 12 3 6 20 1 17 Sample output: 60

24th Jan 2021, 3:29 PM
Ilya Derzhik
Ilya Derzhik - avatar
1 Antwort
+ 5
Ilya Derzhik Yes but you need to show your attempts.
24th Jan 2021, 3:49 PM
A͢J
A͢J - avatar