I tried to do this "right" using strings but even though it works with all examples I've found on the web I always get WA. Can someone see what's wrong with my code?
(Note: I've given up on it and rewritten it to use double, but still it'd be nice to know why it failed).
#include <iostream ...
Search found 2 matches
- Tue Mar 01, 2011 8:36 pm
- Forum: Volume 4 (400-499)
- Topic: 465 - Overflow
- Replies: 104
- Views: 39148
- Sat Apr 03, 2010 1:31 am
- Forum: Volume 3 (300-399)
- Topic: 396 - Top Dog
- Replies: 5
- Views: 3513
Re: 396 -> Top Dog -> Top help!
I'm also getting WA even though it works perfectly with the example input... Any idea?
// -------------------------------------------------------------
//
// 396 - Top Dog
//
// http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=332
//
// By Siegfried Gevatter ...
// -------------------------------------------------------------
//
// 396 - Top Dog
//
// http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=332
//
// By Siegfried Gevatter ...