Search found 25 matches

by sadia_atique
Thu Mar 14, 2013 9:44 pm
Forum: Volume 102 (10200-10299)
Topic: 10261 - Ferry Loading
Replies: 41
Views: 25069

Re: 10261 - Ferry Loading

I'm getting WA for this problem..I've tried all I/O posted here,and my code gives correct output for them..cannot find the bug,anyone please help kindly :( #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int cars[205]; int sum[205]; int L,N,Max; int DP[205][100*100+5]; in...
by sadia_atique
Sun Jul 29, 2012 12:27 pm
Forum: Volume 114 (11400-11499)
Topic: 11414 - Dream
Replies: 8
Views: 7301

Re: 11414 - Dream

I'm getting WA for this problem,I used Havel Hakimi algorithm,first checked for negative and odd number of odd degrees,then within a loop decremented the degrees according to the algorithm.I can't get what went wrong,I even checked with test inputs,and it passed..someone please help :( got AC after ...
by sadia_atique
Wed Jun 06, 2012 5:25 pm
Forum: Volume 107 (10700-10799)
Topic: 10718 - Bit Mask
Replies: 29
Views: 13160

Re: 10718 - Bit Mask

Thanks,Got AC..a stupid mistake in loop..
by sadia_atique
Tue Jun 05, 2012 1:52 pm
Forum: Volume 107 (10700-10799)
Topic: 10718 - Bit Mask
Replies: 29
Views: 13160

Re: 10718 - Bit Mask

Can anyone help??I'm getting WA in this problem...please help :cry:
by sadia_atique
Tue Jun 05, 2012 12:49 am
Forum: Volume 107 (10700-10799)
Topic: 10718 - Bit Mask
Replies: 29
Views: 13160

Re: 10718 - Bit Mask

I'm getting WA in this problem..What I did is setting ans initially to zero..then checking every bit starting from MSB,if its zero,then set that bit in "ans",and check whether the new ans is smaller than upper limit,if yes,then set that bit,otherwise didn't set.When 1 found in any bit,made...
by sadia_atique
Thu May 03, 2012 3:20 pm
Forum: Volume 9 (900-999)
Topic: 985 - Round and Round Maze
Replies: 2
Views: 3592

Re: 985-Round and round Maze, WA

I'm getting WA for this problem,can anyone help?I think here state is 3D,x,y component of grid,and the directions to which it is possible to go from a greed..so I used a 3D bool array of this dimension [505][505][18] to keep record of visited nodes..I though,there can b 16 combinations of directions...
by sadia_atique
Sat Apr 07, 2012 5:09 am
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 52018

Re: 929 - Number Maze

but here STL priority queue gives tle,what to do?
by sadia_atique
Fri Apr 06, 2012 9:55 pm
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 52018

Re: 929 - Number Maze

Can anyone please help me to get in runtime for this problem?What can I do to get it in runtime? :cry:
by sadia_atique
Fri Apr 06, 2012 12:29 pm
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 52018

Re: 929 - Number Maze

I'm getting tle for this problem..I used dijkstra,and tried to implement it with just array,without using STL priority queue,just to get it within time limit,bt unsuccessful..can anyone please help me?What can I do to get it within time?? :cry: :cry: #include<cstdio> #include<cstring> using namespac...
by sadia_atique
Sat Feb 18, 2012 7:07 am
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 25028

Re: 11428 - Cubes (about 7 times TLE and 3 times WA)

Thanks a lot,got AC now :D
by sadia_atique
Fri Feb 17, 2012 8:27 pm
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 25028

Re: 11428 - Cubes (about 7 times TLE and 3 times WA)

It's still WA,even after changing,what can I do now?someone,please help :(
by sadia_atique
Wed Feb 15, 2012 8:33 am
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 25028

Re: 11428 - Cubes (about 7 times TLE and 3 times WA)

I've changed that part,started the loop from i=1,so y and x both will be always>0,it still gives WA :cry:
by sadia_atique
Tue Feb 14, 2012 7:22 pm
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 25028

Re: 11428 - Cubes (about 7 times TLE and 3 times WA)

Getting WA in this problem,can anyone help please?any special case I've missed? #include<stdio.h> typedef struct{ int x; int y; }s; s cube[20005]; int main() { int i,j,k,p; for(i=0; i<=22; i++) { for(j=i+1; j<=22; j++) { p=(j*j*j)-(i*i*i); if(cube[p].x==0 && cube[p].y==0) { cube[p].x=j; cube...
by sadia_atique
Tue Jan 31, 2012 8:01 am
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 42077

Re: 10004 - Bicoloring

Thnax a lot! :D another stupid mistake!
by sadia_atique
Tue Jan 31, 2012 5:39 am
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 42077

Re: 10004 - Bicoloring

I don't get why I'm getting WA in bicolouring..tried to think about many possible mistakes,tried some sample inputs,but still WA.I used bfs here,started from the 1st input node,coloured it 1,then colored all its adjecent to 2,thus went on..when got some node that its adjacent is same color as it,the...

Go to advanced search