423 - MPI Maelstrom

All about problems in Volume 4. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

raihan_sust05
New poster
Posts: 5
Joined: Fri Nov 22, 2013 6:34 pm

Re: 423 - MPI .... please help

Post by raihan_sust05 » Thu May 01, 2014 5:20 pm

getting WA...but can't understand why :( .....anyone help me please. here is my code :

Code: Select all

got AC  :D 
Last edited by raihan_sust05 on Fri May 02, 2014 6:21 am, edited 2 times in total.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 423 - MPI .... please help

Post by brianfry713 » Fri May 02, 2014 12:35 am

Try using long long.
The judge's input only contains one test case.
Check input and AC output for thousands of problems on uDebug!

shahidul_brur
New poster
Posts: 12
Joined: Sun Sep 20, 2015 12:33 pm

Re: 423 - MPI Maelstrom

Post by shahidul_brur » Mon Sep 21, 2015 5:53 pm

I am not understanding, how the sample output is 35 :(
It seem to be 45, what I understood !
it is 10+10+20+5 = 45 ( 1 -> 5 -> 4 -> 2 -> 3 ).
I am not understanding, how it can be 35 ?

See my attached image.....
Attachments
uva.png
uva.png (14.42 KiB) Viewed 683 times

Post Reply

Return to “Volume 4 (400-499)”