Thanks, Finally accepted :)
Nothing better than random test cases!
#include <iostream>
#include <vector>
#include <cstdlib>
using namespace std;
int getRand(int a, int b){
return a + random() % b;
}
int main(){
srandom(time(NULL));
int t = getRand(1, 1000);
cout << t << endl << endl ...
Search found 2 matches
- Wed Aug 18, 2010 11:46 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10142 - Australian Voting
- Replies: 82
- Views: 46283
- Tue Aug 17, 2010 11:25 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10142 - Australian Voting
- Replies: 82
- Views: 46283
Re: 10142 - Australian Voting
Hi Guys,
This is my first post here so hello !
My code is accepted on programming challenges but not on uva online judge.
I've passed all the test cases I found here in this topic successfully. I've also tried uvatoolkit succesfully too.
Here is my code if any one could find the problem I'll be ...
This is my first post here so hello !
My code is accepted on programming challenges but not on uva online judge.
I've passed all the test cases I found here in this topic successfully. I've also tried uvatoolkit succesfully too.
Here is my code if any one could find the problem I'll be ...