Search found 5 matches

by tapan_chugh
Thu Jan 17, 2013 12:10 pm
Forum: Volume 112 (11200-11299)
Topic: 11205 - The broken pedometer
Replies: 25
Views: 16230

Re: 11205 - The Broken Pedometer

I am getting a WA. My algo is to try all the possible permutations. For our answer the bitwise and of all the test cases with the permutation should be distinct #include<cstdio> #include<set> #define isOn(S, j) (S & (1 << j)) #define setBit(S, j) (S |= (1 << j)) using namespace std; int tcases[1...
by tapan_chugh
Sun Dec 30, 2012 11:15 am
Forum: Volume 115 (11500-11599)
Topic: 11503 - Virtual Friends
Replies: 49
Views: 25147

Re: 11503 - Virtual Friends

thanks brianfry713
by tapan_chugh
Fri Dec 28, 2012 10:03 pm
Forum: Volume 115 (11500-11599)
Topic: 11503 - Virtual Friends
Replies: 49
Views: 25147

Re: 11503 - Virtual Friends

Guys i am using the union-find algo and map.
However I am getting TLE. Can anybody help ?
Below is my code

Code: Select all

AC..
by tapan_chugh
Wed Dec 26, 2012 12:18 pm
Forum: Volume 109 (10900-10999)
Topic: 10901 - Ferry Loading III
Replies: 54
Views: 29851

Re: 10901 - Ferry Loading III

Thanks, Mukit Chowdhury
by tapan_chugh
Wed Dec 26, 2012 6:53 am
Forum: Volume 109 (10900-10999)
Topic: 10901 - Ferry Loading III
Replies: 54
Views: 29851

Re: 10901 - Ferry Loading III

Hello,
I am getting WA for this problem even though i have tried the tricky cases. Below is my code

Code: Select all

AC...:)
Please try to help

Go to advanced search