Page 2 of 2

Posted: Thu Jan 11, 2007 6:46 pm
by rio
Just compare your output and samples output carefully. You will know why.

Posted: Thu Jan 11, 2007 8:05 pm
by sumantbhardvaj
Thanx rio ... on carefully watching at my output .. i found tht i had used capital X instead of small X

Posted: Sat Jul 07, 2007 6:59 am
by Tommy Wu
Your code fails the follow inputs:

Code: Select all

10
2 84
84 66
66 8
8 410
410 8
8 96
96 10
10 200
200 10
10 2
10
2 64
64 8
8 55
55 333
333 44
44 887
887 554
554 1
1 226
226 33
0
Output should be:

Code: Select all

Case 1: (((A1 x A2) x A3) x (A4 x (A5 x (A6 x (A7 x (A8 x (A9 x A10)))))))
Case 2: ((A1 x (A2 x (A3 x (A4 x (A5 x (A6 x (A7 x A8))))))) x (A9 x A10))

348 - Optimal Array Multiplication

Posted: Wed May 28, 2008 2:28 pm
by aeiou
ACed...
Thanks anyway...

348 WA

Posted: Sat Aug 07, 2010 1:27 pm
by kawsar
I got accepted....bye.:):):):):):)

Re: 348: Why am i getting wrong answer?

Posted: Sat Aug 14, 2010 8:44 pm
by kawsar
Thanks......,
Mr. Tommy Wu

For your simple input output, i found my mistake in my program.
Thanks a lot.....
Bye.

Re: 348 WA

Posted: Sat Aug 14, 2010 8:45 pm
by kawsar
I got accepted......:):)

Re: 348 WA

Posted: Thu Oct 17, 2013 8:37 pm
by Mukit Chowdhury
Getting RE !!! Can anyone give me a suggestion please ????

Code: Select all

Deleted after Accepted...