Search found 5 matches

by gautamsingh
Tue Dec 02, 2014 7:50 am
Forum: Volume 4 (400-499)
Topic: 435 - Block Voting
Replies: 11
Views: 3495

Re: 435 - Block Voting

Thanks a lot brainfry713. :D
by gautamsingh
Sat Nov 29, 2014 9:45 am
Forum: Volume 4 (400-499)
Topic: 435 - Block Voting
Replies: 11
Views: 3495

Re: 435 - Block Voting

Code: Select all

code removed
I am getting WA. I have tried a lot of random test cases on udebug.com
by gautamsingh
Thu Sep 04, 2014 2:23 pm
Forum: Volume 6 (600-699)
Topic: 624 - CD
Replies: 77
Views: 46250

Re: 624 - CD

Why am I getting TLE? I am generating all subsets and finding the subset with the max sum.

EDIT: Got AC. TLE was due to declaring temporary list of tracks each team inside the loop.

#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#define pb push_back
using namespace std ...
by gautamsingh
Wed Apr 23, 2014 6:06 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 318353

Re: If you get WA in problem 100, read me before post!

brianfry713 wrote:The judge is currently having issues, try again later.
I got it accepted. The judge was too slow. Thanks for your help. Should I delete the code posted above?
by gautamsingh
Tue Apr 22, 2014 7:39 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 318353

Re: If you get WA in problem 100, read me before post!

I submitted this code about 20 minutes ago and still no verdict is being shown. Submission ID is 13533745 and same for 13533473 which was submitted about an hour ago. (this one's incorrect though)
#include <algorithm>
#include <cstdio>
#define INF 9999999
using namespace std;
int a[1000050];
int ...

Go to advanced search