Search found 32 matches

by shiplu_1320
Wed Dec 31, 2008 12:16 am
Forum: Volume 4 (400-499)
Topic: 424 - Integer Inquiry
Replies: 96
Views: 19871

Re: 424 Got a WA...Pls help!!!!!

I think you have missed a newline.
Good luck :)
by shiplu_1320
Tue Dec 30, 2008 2:36 pm
Forum: Volume 113 (11300-11399)
Topic: 11345 - Rectangles
Replies: 27
Views: 8893

Re: 11345 - Rectangles

you doesn't need this part, remove it if( ((x1>=X1 && x1<=X2) && (y1>=Y1 && y1<=Y2)) || ((x2>=X1 && x2<=X2) && (y2>=Y1 && y2<=Y2)) || ((x1>=X1 && x1<=X2) && (y2>=Y1 && y2<=Y2)) || ((x2>=X1 && x2<=X2) && (y1>=Y1 && y1<=Y2)) || ((X1>=x1 && X1<=x2) && (Y2>=y1 && Y2<=y2)) ) { set=0; } else set=1; and ch...
by shiplu_1320
Mon Dec 29, 2008 8:50 pm
Forum: Volume 113 (11300-11399)
Topic: 11345 - Rectangles
Replies: 27
Views: 8893

Re: 11345 - Rectangles

another case for you

Code: Select all

1
2
1 1 5 5
2 6 6 10
output

Code: Select all

Case 1: 0
Think simple. you don't need a huge check....
and please use code tag instead of quote
by shiplu_1320
Mon Dec 29, 2008 2:29 pm
Forum: Volume 3 (300-399)
Topic: 340 - Master-Mind Hints
Replies: 27
Views: 8342

Re: 340 Mastermind

just change

Code: Select all

if(secret[i]=='#' && guess[i]=='#')continue;
to

Code: Select all

if(secret[i]=='#' && guess[j]=='#')continue;
Good luck :)
by shiplu_1320
Sun Dec 28, 2008 4:13 pm
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 22604

Re: 11371 - Number Theory for Newbies

by rearranging 100, we can get

Code: Select all

010
001
and both has leading zero.
so the only valid number is 100 and it is the max and min both.
by shiplu_1320
Sun Dec 28, 2008 3:58 pm
Forum: Volume 113 (11300-11399)
Topic: 11345 - Rectangles
Replies: 27
Views: 8893

Re: 11345 - Rectangles

try this input

Code: Select all

1
2
1 1 3 3
4 4 6 6
output:

Code: Select all

Case 1: 0
Good luck :)
by shiplu_1320
Mon Sep 22, 2008 10:03 pm
Forum: Volume 112 (11200-11299)
Topic: 11219 - How old are you?
Replies: 117
Views: 33578

Re: 11219 - How old are you?

you can try this

Code: Select all

1
2/10/2000
2/11/1999
Output should be

Code: Select all

Case #1: 0
Good luck :D
by shiplu_1320
Mon Sep 22, 2008 10:23 am
Forum: Volume 112 (11200-11299)
Topic: 11219 - How old are you?
Replies: 117
Views: 33578

Re: 11219 - How old are you?

Kabir, try this,
input:

Code: Select all

2
28/2/2001
1/3/2001

29/2/2000
1/3/2000
output should be

Code: Select all

Case #1: Invalid birth date
Case #2: Invalid birth date
Good luck
by shiplu_1320
Mon Sep 22, 2008 12:30 am
Forum: Volume 114 (11400-11499)
Topic: 11492 - Babel
Replies: 18
Views: 10474

11492 - Babel

Why getting WA? any critical test cases.......? /* Problem name: Babel Author : Shiplu Algorithm : Dijkstra */ #include<stdio.h> #include<queue> #include<vector> using namespace std; struct abc { int x,cost,ch; }temp,u; struct comp { bool operator()(const abc &a,const abc &b) { return a.cost>b.cost;...
by shiplu_1320
Sat Jul 26, 2008 10:09 pm
Forum: Volume 114 (11400-11499)
Topic: 11459 - Snakes and Ladders
Replies: 33
Views: 14676

Re: 11459 - Snakes and Ladders

I am getting WA in this problem since contest and most shocking for me is that, after rejudge my code is not AC. :(
Am i missed anything?
Please help.........

Code: Select all

Removed After AC.
Thanks a million jurajz.
Thanks in advance.
by shiplu_1320
Mon Jun 23, 2008 10:03 pm
Forum: Volume 114 (11400-11499)
Topic: 11456 - Trainsorting
Replies: 20
Views: 10432

Re: 11456 - Trainsort

could you please explain further.
for the input given by rio above,
LIS[0]=4
LDS[0]=5
so LIS[0]+LDS[0]-1= 8
but answer should be 5.
thanx in advance :D
by shiplu_1320
Sat Jun 21, 2008 9:10 pm
Forum: Volume 114 (11400-11499)
Topic: 11456 - Trainsorting
Replies: 20
Views: 10432

11456 - Trainsorting

I am getting WA in this problem since the contest.Help anyone........

Code: Select all

Removed After AC
Thanx in advance.
by shiplu_1320
Fri Jun 20, 2008 11:46 am
Forum: Volume 111 (11100-11199)
Topic: 11192 - Group Reverse
Replies: 22
Views: 11367

Re: 11192 - Group Reverse

input

Code: Select all

 1 S
your code output a null after S
write the output in a file for this input and see.

Good luck.
by shiplu_1320
Fri Jun 20, 2008 10:52 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 37611

Re: 102 Runtime Error (SIGSEGV)

You have declare

Code: Select all

int sum[5]
but you are trying to access index sum[5] , which doesn't exist.

Good luck.
by shiplu_1320
Thu Feb 28, 2008 7:28 am
Forum: Volume 113 (11300-11399)
Topic: 11398 - The Base-1 Number System
Replies: 23
Views: 9630

Check your binary to decimal conversion. The bug is in there.

Go to advanced search