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 ...
Search found 8 matches
- Thu Jan 24, 2008 4:24 pm
- Forum: Volume 1 (100-199)
- Topic: 196 - Spreadsheet
- Replies: 42
- Views: 16429
- Mon Jan 14, 2008 2:33 pm
- Forum: Volume 1 (100-199)
- Topic: 196 - Spreadsheet
- Replies: 42
- Views: 16429
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 ...
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 ...
- Thu Sep 20, 2007 4:30 pm
- Forum: Volume 5 (500-599)
- Topic: 514 - Rails
- Replies: 79
- Views: 37862
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?
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?
- Thu Sep 20, 2007 4:14 pm
- Forum: Volume 5 (500-599)
- Topic: 514 - Rails
- Replies: 79
- Views: 37862
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 [:(]
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 [:(]
- Thu Sep 20, 2007 11:46 am
- Forum: Volume 5 (500-599)
- Topic: 514 - Rails
- Replies: 79
- Views: 37862
Blank line business not clear
Hi,
I didn't really understand what you meant.
I tried with the sample data as follows:
This produced the output as follows:
Please tell me if this is wrong.
Thanks,
Sangram
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
Code: Select all
Yes
No
Yes
Yes
Yes
Yes
Thanks,
Sangram
- Wed Sep 19, 2007 2:21 pm
- Forum: Volume 5 (500-599)
- Topic: 514 - Rails
- Replies: 79
- Views: 37862
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.
Thanks.
Code: Select all
Removing the code .. as it was giving AC
- Fri Sep 29, 2006 5:23 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55277
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 ...
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 ...
- Fri Jun 30, 2006 3:32 pm
- Forum: Volume 1 (100-199)
- Topic: 116 - Unidirectional TSP
- Replies: 226
- Views: 65555
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.
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.