Search found 42 matches

by apurba
Fri Nov 30, 2007 4:07 pm
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 21705

where's the worng?

i am not finding where's the wrong. help me pls. here is my code........... #include<stdio.h> #include<string.h> #include<ctype.h> char s[1001]; char temp[1001]; long len; long i,t,x; long count; int main() { while(gets(s)) { len=strlen(s); t=0; for(i=0;i<len;i++) { //t=0; if(s[i]!='.'||s[i]!=','||s...
by apurba
Fri Nov 30, 2007 11:22 am
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 39024

where's wrong in 10424

Code: Select all


removed after accepted
		
by apurba
Sun Nov 25, 2007 12:28 am
Forum: Volume 113 (11300-11399)
Topic: 11361 - Investigating Div-Sum Property
Replies: 16
Views: 6856

Re: what wrong with my code?

here is my code. what wrong with that? Your program is completely wrong. You have to compute the sum of the digits like this way: unsigned int sumofdigits( unsigned int n) { unsigned int k=n,sum=0; while(k) sum+=k%10,k/=10; return sum; } And try to avoid TLE, because by only this simple sumofdigits...
by apurba
Sat Nov 24, 2007 10:22 pm
Forum: Volume 113 (11300-11399)
Topic: 11361 - Investigating Div-Sum Property
Replies: 16
Views: 6856

what wrong with my code?

here is my code.
what wrong with that?

Code: Select all

cut without ac
				
anyone help.
by apurba
Sat Nov 24, 2007 9:45 pm
Forum: Volume 113 (11300-11399)
Topic: 11361 - Investigating Div-Sum Property
Replies: 16
Views: 6856

11361 - Investigating Div-Sum Property

my code is giving correct output for first two sample but not for the third one.
is that output is correct?

need more test cases.

Title Edited by Moderator
by apurba
Thu Nov 22, 2007 5:35 pm
Forum: Volume 109 (10900-10999)
Topic: 10945 - Mother bear
Replies: 65
Views: 16741

10945-mother bear.///where i have to fix?

where i have to fix in this code

Code: Select all



deleted after acc...........


		

by apurba
Tue Nov 20, 2007 2:41 pm
Forum: Volume 109 (10900-10999)
Topic: 10929 - You can say 11
Replies: 69
Views: 26664

where's wrong in the code?

Code: Select all

removed after ac
by apurba
Sat Nov 17, 2007 6:47 pm
Forum: Volume 100 (10000-10099)
Topic: 10082 - WERTYU
Replies: 57
Views: 6802

what's wrong?????????

#include<stdio.h> #include<string.h> #include<ctype.h> int main() { char s[1000]; long len; long i; while(gets(s)) { len=strlen(s); for(i=0;i<len;i++) { if(s[i]=='B') printf("V "); else if(s[i]=='C') printf("X"); else if(s[i]=='D') printf("S"); else if(s[i]=='E') printf("W"); else if(s[i]=='F') pri...
by apurba
Sat Nov 17, 2007 6:44 pm
Forum: Volume 100 (10000-10099)
Topic: 10082 - WERTYU
Replies: 57
Views: 6802

where to fix??????????

#include<stdio.h> #include<string.h> #include<ctype.h> int main() { char s[1000]; long len; long i; while(gets(s)) { len=strlen(s); for(i=0;i<len;i++) { if(s[i]=='B') printf("V "); else if(s[i]=='C') printf("X"); else if(s[i]=='D') printf("S"); else if(s[i]=='E') printf("W"); else if(s[i]=='F') pri...
by apurba
Wed Nov 14, 2007 9:57 am
Forum: Volume 113 (11300-11399)
Topic: 11332 - Summing Digits
Replies: 17
Views: 9559

it is not so simple for all.
:o
by apurba
Wed Nov 14, 2007 9:27 am
Forum: Volume 113 (11300-11399)
Topic: 11332 - Summing Digits
Replies: 17
Views: 9559

:P
that is what i am thinking about.............using string.
by apurba
Wed Nov 14, 2007 8:07 am
Forum: Volume 113 (11300-11399)
Topic: 11332 - Summing Digits
Replies: 17
Views: 9559

11332 - Summing Digits

is there any algorithm for the problem? very east to understand but its really troubling.

Go to advanced search