Search found 24 matches

by aliahmed
Wed Mar 25, 2009 4:51 pm
Forum: Volume 112 (11200-11299)
Topic: 11219 - How old are you?
Replies: 117
Views: 33854

Re: 11219 - How old are you?

What' s wrong with my code. getting WA #include<stdio.h> #include<math.h> #include<string.h> int main() { long dd, mm, yy, dd1, mm1, yy1, i, j, n, l, f, c=1; char str[20],str1[20]; scanf("%ld",&n); getchar(); while(n>0) { dd=0; mm=0; yy=0; dd1=0; mm1=0; yy1=0; scanf("%s %s",&str, &str1); l=strlen(st...
by aliahmed
Sat Jan 17, 2009 10:20 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 67850

10189 - Minesweeper

W A. Someone please help me. #include<stdio.h> int main() { int n,m,i,j,count,f=0; char sq[200][200]; count=1; while(scanf("%d%d",&n,&m),n,m) { if(f==1) printf("\n"); f=1; for(i=0; i<n; i++) { for(j=0; j<=m; j++) { scanf("%c",&sq [j]); if(sq [j]=='.') sq [j]='0'; } } for(i=0; i<n; i++) { for(j=0; j<...
by aliahmed
Fri Jan 09, 2009 10:00 pm
Forum: Volume 4 (400-499)
Topic: 445 - Marvelous Mazes
Replies: 93
Views: 10535

Re: 445 - Marvelous Mazes

I test your input
I think my output is correct
then why wa again?
by aliahmed
Tue Nov 18, 2008 10:51 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 17433

Re: 369 WA even if it works for every test case i found :S

I got ac with this code in 530 but why wa in369 #include<stdio.h> int main() { long i,j,n,k; double r,s; while(scanf("%ld%ld",&n,&k)) { if(n==0 && k==0) break; if(n==k || k==0) { printf("%ld things taken %ld at a time is 1 exactly.\n",n,k); continue; } else if((n-1)==k || k==1) { printf("%ld things ...
by aliahmed
Fri Nov 14, 2008 10:53 pm
Forum: Volume 4 (400-499)
Topic: 445 - Marvelous Mazes
Replies: 93
Views: 10535

445 - Marvelous Mazes

AC - Thanks
by aliahmed
Fri Nov 14, 2008 10:28 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20542

Re: 490-Rotating sentence

Thanks kabir bhai.
by aliahmed
Thu Nov 13, 2008 11:45 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20542

490-Rotating sentence

Please help me with this code i'm just getting wrong answer.

AC
by aliahmed
Wed Oct 29, 2008 12:50 am
Forum: Volume 109 (10900-10999)
Topic: 10924 - Prime Words
Replies: 44
Views: 22470

Re: 10924 - Prime Words

AC.
by aliahmed
Fri Oct 24, 2008 9:02 pm
Forum: Volume 104 (10400-10499)
Topic: 10469 - To Carry or not to Carry
Replies: 24
Views: 10510

Re: 10469 - To Carry or not to Carry

I got runtime error with this code. re is common for me. I'm newbie. can someone help me to find the mistake in my code. #include<stdio.h> #include<string.h> #include<math.h> #include<stdlib.h> int main() { long long f,f1,f2,j,i,n,b,l1,l2,l,sum,mul,k,l3; char str[100],str1[100],res[100],h[100],ch,c...

Go to advanced search