Search found 8 matches

by sangram
Thu Jan 24, 2008 4:24 pm
Forum: Volume 1 (100-199)
Topic: 196 - Spreadsheet
Replies: 42
Views: 10000

No clue why this is WA!

Someone please help me get this right. Have tried quite a bit on this, but somehow can't get it AC :cry: All the test inputs given in this thread seem to produce the correct output with my program. #include<iostream> #include<cassert> #include<vector> using namespace std; #define BLACK 101 #define W...
by sangram
Mon Jan 14, 2008 2:33 pm
Forum: Volume 1 (100-199)
Topic: 196 - Spreadsheet
Replies: 42
Views: 10000

WA ... out of ideas :(

Someone please help me get this right. Have tried quite a bit on this, but somehow can't get it AC :cry: All the test inputs given in this thread seem to produce the correct output with my program. #include<iostream> #include<cassert> #include<vector> using namespace std; #define BLACK 101 #define W...
by sangram
Thu Sep 20, 2007 4:30 pm
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 24559

Thanks!

Oh ok .. fine.
Also ... one suggestion for the new judge if you can help in that matter ... the old judge used to mail the solutions which I submitted ... was nice to keep track of all the submissions ... is there a similar mechanism which exists for the new judge?
Is this going to be setup soon?
by sangram
Thu Sep 20, 2007 4:14 pm
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 24559

Thanks!

hey that does the job. I had unnecessarily put the condition to check for not putting an endline at the very end ...

had one query ... why does this not give PE? When exactly does some submission count as PE?

Thanks a lot! Spent too much time on a relatively simple problem [:(]
by sangram
Thu Sep 20, 2007 11:46 am
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 24559

Blank line business not clear

Hi,
I didn't really understand what you meant.
I tried with the sample data as follows:

Code: Select all

5
1 2 3 4 5
5 4 1 2 3
0
6
6 5 4 3 2 1
5 6 4 3 2 1
1 2 3 4 5 6
0
10
1 2 3 4 5 10 9 8 7 6
0
0
This produced the output as follows:

Code: Select all

Yes
No

Yes
Yes
Yes

Yes
Please tell me if this is wrong.

Thanks,
Sangram
by sangram
Wed Sep 19, 2007 2:21 pm
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 24559

Getting WA - someone please provide test cases or explain

I have solved the problem using a simulation using stacks. Please point out any mistake.

Thanks.

Code: Select all

Removing the code .. as it was giving AC
by sangram
Fri Sep 29, 2006 5:23 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20520

Getting wrong answer, please help

I am getting Wrong Answer in Problem 107 - The Cat in the Hat Please someone help. Giving code below. I am basically seaching for a number n such that n divides the second input and (n+1) divides the first number. All such numbers n are then tested to be the correct solutions by finding the appropri...
by sangram
Fri Jun 30, 2006 3:32 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 36133

Problem 116 - Presentation Error !

Can anyone please tell me what can be wrong in my code ? I am not posting it here as it is already accepted ... but I got a presentation error.

Please help ! I want to know what the problem could be ?
For the test input given on the problem page, I seem to be getting the exactly same output.

Go to advanced search