Search found 6 matches

by udcp
Tue May 11, 2004 7:52 am
Forum: Volume 101 (10100-10199)
Topic: 10100 - Longest Match
Replies: 95
Views: 34631

10100

My code gives the output for the following inputs as..

12 12
12 12
1. Length of longest match: 2
this is a test
this is is a a test
2. Length of longest match: 4
76.67 67
67 67 76
3. Length of longest match: 2
(\n)
(\n)
4. Blank!
(\n)
asd
5. Blank!
(\n)
(space)
6. Blank!
(space ...
by udcp
Wed May 05, 2004 7:44 pm
Forum: Volume 101 (10100-10199)
Topic: 10100 - Longest Match
Replies: 95
Views: 34631

Can anyone help me find the reason for WA?? : 10100

My code gives the output for the following inputs as..

12 12
12 12
1. Length of longest match: 2
this is a test
this is is a a test
2. Length of longest match: 4
76.67 67
67 67 76
3. Length of longest match: 2
(\n)
(\n)
4. Blank!
(\n)
asd
5. Blank!
(\n)
(space)
6. Blank!
(space)
(space)
7 ...
by udcp
Mon Jun 24, 2002 8:46 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 57998

I got it ACCEPTED!!!!!!! :D
The only change I made was changed
' int main(int argv, char *argc[]) '
to
'void main()'

But.. Can't we actually use command line args while submitting our program?? :-?
by udcp
Mon Jun 24, 2002 6:57 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 57998

I have sent the code as plain text... Still I get WA!!!!!!!!
by udcp
Sat Jun 22, 2002 12:09 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 57998

Help me correct the error??

I submitted the code shown below, and received a WA . Can anyone help me in finding out where I went wrong???

[cpp]
/*"@BEGIN_OF_SOURCE_CODE"*/
#include <stdio.h>
#include <iostream.h>
#include <string.h>
#include <ctype.h>

int isPalindrome(char input[])
{
int strlength;
strlength ...
by udcp
Fri Jun 21, 2002 10:36 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 57998

401 : Can anyone help me??

I submitted the code shown below, and received a WA :( . Can anyone help me in finding out where I went wrong???

/*"@BEGIN_OF_SOURCE_CODE"*/
#include <stdio.h>
#include <iostream.h>
#include <string.h>
#include <ctype.h>

int isPalindrome(char input[])
{
int strlength;
strlength = strlen(input ...

Go to advanced search