Search found 4 matches

by nazmuldiu
Sun Feb 21, 2010 8:16 am
Forum: Volume 117 (11700-11799)
Topic: 11734 - Big Number of Teams will Solve This
Replies: 26
Views: 7493

11734 - Big Number of Teams will Solve This

I did not find problem why this getting WA. Can any one please help? # include <stdio.h> # include <string.h> # include <ctype.h> int main() { int t,i; char team[25], judge[25],teamEdit[25]; scanf("%d\n",&t); for(i=1;i<=t;i++) { gets(team); gets(judge); if(!strcmp(team,judge)) printf("Case %d: Yes\n...
by nazmuldiu
Sun Jan 24, 2010 12:36 pm
Forum: Volume 117 (11700-11799)
Topic: 11762 - Race to 1
Replies: 10
Views: 4177

Re: 11770-(Race to 1)WA

I do following process:

1. Store all prime numbers upto n
2. Divide d with a prime number and count it untill d become 1
3. continue divide operation withe next prime if d!=1 ( Untill prime <= d )
4. Print the counter value.

I get WA.

Can anyone help please?
by nazmuldiu
Sun Sep 13, 2009 1:47 pm
Forum: Volume 115 (11500-11599)
Topic: 11530 - SMS Typing
Replies: 41
Views: 8629

Re: 11530 - SMS Typing

Why My code getting WA please? #include<iostream> #include<string.h> using namespace std; int main() { int n[26]={1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,4,1,2,3,1,2,3,4}; char b[150]; int a=0,t; cin>>t; for(int j=0;j<t;j++) { a=0; getchar(); gets(b); for(int i=0;b[i];i++) { if(b[i]==32) a++; else a+=n[...
by nazmuldiu
Wed Aug 05, 2009 6:16 pm
Forum: Volume 116 (11600-11699)
Topic: 11639 - Guard the Land
Replies: 7
Views: 3511

Re: 11639 - Guard the Land

Dear Saiful, My Code is giving same output as yours given input. But getting WA. Would you please provide more inputs to test my code? Here is My Code: # include <stdio.h> # include <math.h> int main() { int x1,x2, x3,x4, y1,y2,y3,y4; int T,i; int strongArea, weakArea, unsecuredArea; int rectA,rectB...

Go to advanced search