
Search found 12 matches
- 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 

- 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
- 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/
my code-- http://pastebin.ubuntu.com/9896918/
- 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.
- 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.
- 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:AC output:Code: Select all
2 999999 999999 1 999999
See http://ideone.com/gnCDWBCode: Select all
8999991 1
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
- 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
- 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
- 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 ...
#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 ...
- 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 ...
#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 ...
- 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 ...
#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 ...
- 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 ...
[#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 ...