538 - Balancing Bank Accounts

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

Moderator: Board moderators

kier.guevara
New poster
Posts: 30
Joined: Thu Jul 19, 2012 11:24 pm

Re: 538 - Balancing Bank Accounts

Post by kier.guevara » Mon Apr 08, 2013 9:55 pm

Code: Select all

AC
I kinda don't understand what the problem really needs. What if the number of solutions is less than N-1? will it be okay?
I got WA with my code. I'm not sure what's the problem of it. Can anyone help?

Update :
My algorithm was wrong that's why I'm getting WA. I tried a brute force method that will get all the possible transactions by permuting each transaction :D
After that I got WA :D

User avatar
aerofoil.kite
New poster
Posts: 12
Joined: Tue Dec 06, 2011 8:59 pm
Location: Bangladesh
Contact:

Re: 538 - Balancing Bank Accounts

Post by aerofoil.kite » Wed May 28, 2014 8:23 pm

Is there any problem with input DATA set? It keeps giving PE. I've tried every possible cases. Can anyone check submitting your accepted solution now? I
Mir Shahriar Sabuj

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

Re: 538 - Balancing Bank Accounts

Post by brianfry713 » Wed Jun 11, 2014 10:39 pm

I am able to get AC
Check input and AC output for thousands of problems on uDebug!

User avatar
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: 538 - Balancing Bank Accounts

Post by uDebug » Tue Sep 16, 2014 11:19 am

hasib_bd,

Thanks for the great test cases!
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.

Post Reply

Return to “Volume 5 (500-599)”