Search found 9 matches

by Taslim
Mon Dec 23, 2002 10:01 am
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 21418

I got AC 10018

Hi Red Scorpion thanks for ur replay .. I got Ac :) atlast ... But the problem was not there....My program give same out put for your given sample input.
Thanks to all and thank you again my frined. 8)
by Taslim
Fri Dec 20, 2002 5:41 pm
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 21418

10018 Why WA can u help me?

#include<stdio.h> #include<stdlib.h> #include<string.h> void main() { char in[12],in1[12]; long i,k,n,num1,num2,c; while(scanf("%ld",&n)!=EOF) { for(k=0;k<n;k++) { scanf("%s",in); strcpy(in1,in); int len=strlen(in),j=0; for (i=len-1;i>=0;i--) { in1[j]=in ; j++; } c=0; { do{ c++; num1=atol(in); num2=...
by Taslim
Wed Dec 18, 2002 11:23 pm
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 21418

10018 a funny problem....

At the time of regug its giving WA ....Whats wrong with my program..do u know? #include<stdio.h> #include<stdlib.h> #include<string.h> void main() { char in[12],in1[12]; long i,k,n,num1,num2,c; while(scanf("%ld",&n)!=EOF) { for(k=0;k<n;k++) { scanf("%s",in); strcpy(in1,in); int len=strlen(in),j=0; f...
by Taslim
Tue Dec 10, 2002 6:35 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 41598

Try

See preveas post about this problem u will get AC like me :wink:
Test for given input ...... in preveas post about this problem :roll:

Good luck
by Taslim
Mon Dec 09, 2002 2:20 pm
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 29324

Thanks for replay.......for case 2 my program print also...there was not the problem...I got AC :D but still Presentation Error.... :-? i am not geting whats the wrong in my out put....Thanks all.... :lol:
by Taslim
Mon Dec 09, 2002 9:14 am
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 29324

Whats the wrong with my code? Why WA? Do u know?

Whats the wrong with my code? Why WA? Do u know? #include<stdio.h> #include<string.h> void process(char string[]) { int len,i; len=strlen(string); if(len==7) { if(string[0]=='0') { if(string[1]!='0') printf("%c lakh ",string[1]); } else printf("%c%c lakh ",string[0],string[1]); if(string[2]=='0') { ...
by Taslim
Mon Dec 09, 2002 8:44 am
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 41598

Thanks a lot

HI Astrakan Thanks for riplay.. i got accept....but :-? PA i use int main() { const long int x=1000000; int *a,*b,n,m,l,temp; a=new int[x]; b=new int[x]; Code...... ........... delete a,b; return 0; } So at the end of output file my program write a extra line "Null pointer assignment" Do u can help!...
by Taslim
Sun Dec 08, 2002 6:38 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 41598

10013 WA!

Output for all given data its ok...

and also...

For input:-
1
5
5 0
8 1
8 0
1 1
1 1

1
4
0 9
0 9
0 9
1 9


Oput put is :--
59822

99100


And i am geting WA :( Do u know whats the problem ?Help me :-?
by Taslim
Sun Dec 08, 2002 11:52 am
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 29324

10101 Why WA!

:(
----------INPUT----------
1.0
2.00
3.000
4.01
5.001
6.1000000000
7.100000000000000
----------OUTPUT--------
1. 0
2.
3.
4. 1
5. 1
6. 1 shata kuti
7. 1 kuti kuti

So whats the warng with my program :o [/b]

Go to advanced search