Search found 12 matches

by mentalist_mbstu
Mon Feb 02, 2015 7:22 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 60515

Re: 406 - Prime Cuts

?????????????? tell something :(
by mentalist_mbstu
Wed Jan 28, 2015 7:36 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 60515

Re: 406 - Prime Cuts

i try all i/o of Debug as u suggested bt no error found...!!!!!!!!!!!! help bro
by mentalist_mbstu
Tue Jan 27, 2015 3:06 pm
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 60515

Re: INPUT NEEDED FOR 406

getting wrong answer.. try several test case no error found... help plz...
my code-- http://pastebin.ubuntu.com/9896918/
by mentalist_mbstu
Sat Dec 07, 2013 2:49 pm
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60786

Re: 713 - Adding Reversed Numbers

i am new in string..so would u like to specify which line i make mistake?
brianfry713 wrote:A string is terminated with a null character. Your code continues to read beyond that into uninitialized data.
by mentalist_mbstu
Fri Dec 06, 2013 11:11 am
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60786

Re: 713 - Adding Reversed Numbers

i don't understand what u want to say
brianfry713 wrote:You're reading past the end of a string.
by mentalist_mbstu
Wed Nov 27, 2013 12:05 pm
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60786

Re: 713 - Adding Reversed Numbers

brianfry713 wrote:Input:

Code: Select all

2
999999 999999
1 999999
AC output:

Code: Select all

8999991
1
See http://ideone.com/gnCDWB
bt when i input
2
1 999999
999999 999999
output
1
8999991
bt when i input
2
999999 999999
1 999999
output
8999991
99991
i could not catch it
by mentalist_mbstu
Mon Nov 25, 2013 9:11 am
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60786

Re: 713 - Adding Reversed Numbers

brianfry713 wrote:On my machine your code doesn't match the sample input. It is printing some extra characters on the third line.
i don't understand could u tell in details
by mentalist_mbstu
Sun Nov 24, 2013 5:38 am
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60786

Re: 713 - Adding Reversed Numbers

i don't understand could u tell in details
by mentalist_mbstu
Thu Nov 21, 2013 5:32 pm
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60786

Re: 713 - Adding Reversed Numbers

getting wrong answer i try several input...help me
#include<stdio.h>
#include<string.h>

int main()

{
int j,t,k,x,i,len,len1,q,l;
char s[2002],s1[2002],str[2002]= {0},str1[2001]= {0},sum[2002],sum1[1000];


scanf("%d",&t);
getchar();

for(x=0; x<t; x++)

{

scanf("%s%s",s,s1);
k=0;
i=0;
q=0;
len ...
by mentalist_mbstu
Thu Nov 21, 2013 5:29 pm
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60786

Re: 713 - Adding Reversed Numbers

getting wrong answer i try several input...help me
#include<stdio.h>
#include<string.h>

int main()

{
int j,t,k,x,i,len,len1,q,l;
char s[2002],s1[2002],str[2002]= {0},str1[2001]= {0},sum[2002],sum1[1000];


scanf("%d",&t);
getchar();

for(x=0; x<t; x++)

{

scanf("%s%s",s,s1);
k=0;
i=0;
q=0;
len ...
by mentalist_mbstu
Wed Nov 20, 2013 6:06 pm
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60786

Re: 713 - Adding Reversed Numbers

getting wrong answer i try several input...help me
#include<stdio.h>
#include<string.h>

int main()

{
int j,t,k,x,i,len,len1,q,l;
char s[2002],s1[2002],str[2002]= {0},str1[2001]= {0},sum[2002],sum1[1000];


scanf("%d",&t);
getchar();

for(x=0; x<t; x++)

{

scanf("%s%s",s,s1);
k=0;
i=0 ...
by mentalist_mbstu
Tue Nov 19, 2013 12:04 am
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60786

Re: 713 - Adding Reversed Numbers

gettng wa...help me
[#include<stdio.h>
#include<string.h>

int main()

{
int j,t,k,x,i,len,len1,q,l;
char s[2002],s1[2002],str[2002]={0},str1[2001]={0},sum[2002],sum1[1000];


scanf("%d",&t);
getchar();

for(x=0; x<t; x++)

{

scanf("%s%s",s,s1);
k=0;
i=0;
q=0;
len=strlen(s);
len1 ...

Go to advanced search