Hack
Now
EN
Login
Register
HackNow
Matrix chain multiplication | HackNow
Go back
Reading Mode
Problem
Submissions
Matrix chain multiplication
lock
UZ only
Oson
100 points
3 s
256 MB
Input format
Output format
Constraints
Examples
1
1
Example #1
Input
3 10 20 30 40
Output
18000
Solution editor
Python 3
Clear
Language
PYTHON
UTF-8
Tab
4 spaces
Ctrl
+
Enter
Submit
Submit