Search found 17 matches

by Tariq Shahriar
Sat Oct 07, 2006 12:11 pm
Forum: Volume 101 (10100-10199)
Topic: 10141 - Request for Proposal
Replies: 44
Views: 17114

10141 Kindly check on my WA code

Judges ans is WA. Deleted after Accepted. Because you may resolve and submit my code. 1. initialize highest=-1 and low_price=999999999999.0 2. I just read, don't store the requirements 3. only keep the highest offer value. 4. if offers==highest_offer then check the low price. and then keep the compa...
by Tariq Shahriar
Fri Oct 06, 2006 6:56 am
Forum: Volume 5 (500-599)
Topic: 571 - Jugs
Replies: 24
Views: 13088

By simulating the problem, i derived a greedy(!?) algorithm. But i was thinking that it might be got Run time error in the UVa judges. and it was happened so. My code outputed correctly for little joey 's given input: fill B pour B A empty A pour B A fill B pour B A success // ---- Step: 6 fill A po...

Go to advanced search