Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

MCM

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1.52 sec, absolute running time: 0.16 sec, cpu time: 0.01 sec, memory peak: 5 Mb, absolute service time: 1,77 sec 
edit mode |  history  | discussion
Optimal Parenthesization is : ((A(BC))D)nOptimal Cost is : 3750
0	1000	1250	3750	

0	0	1000	6000	

0	0	0	10000	

0	0	0	0	
BRACKETS:

-91339104	1	1	3	

0	-91342976	2	3	

0	0	-91364304	3	

0	0	0	-91367000