
Search found 3 matches
- Fri Jul 11, 2008 7:07 am
- Forum: Volume 101 (10100-10199)
- Topic: 10142 - Australian Voting
- Replies: 82
- Views: 45755
Re: 10142 - Australian Voting
Never mind. Fixed it. Actually, while taking input, the string and istringstream objects were created and destroyed on every iteration, making the whole thing very expensive w.r.t. time
.

- Thu Jul 10, 2008 2:55 am
- Forum: Volume 101 (10100-10199)
- Topic: 10142 - Australian Voting
- Replies: 82
- Views: 45755
Re: 10142 - Australian Voting
I finally got my program to be accepted at Programming Challenges' website. In my previous code, I wasn't "eliminating" candidates the right way.
However, the program still exceeds time-limit at UVa judge :( :
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include ...
However, the program still exceeds time-limit at UVa judge :( :
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include ...
- Mon Jul 07, 2008 11:52 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10142 - Australian Voting
- Replies: 82
- Views: 45755
Re: 10142 - Australian Voting
Since I was just practicing STL, this code is ugly. I don't expect anyone to read through it. However, even though I have tried every (valid) test-case I have been able to found and it worked perfectly, the judge says time limit exceeds on this one :( . I'll be thankful if someone can point out some ...