Search found 19 matches

by Daredevil
Tue Apr 01, 2003 8:32 am
Forum: Volume 103 (10300-10399)
Topic: 10393 - The One-Handed Typist
Replies: 40
Views: 11246

10393 Why WA ?????????????

What's wrong with my code ? C: #include<stdio.h> #include<string.h> int m,n,finger[15],i,j,k,sum,a,in[1010],len1,len; char word[1010][60],checker[50],list[1010][60]; char letter[15][10]={"qaz","wsx","edc","rfvtgb","!","!","yhnujm","ik,","ol.","p;/"}; void main(){ while(scanf("%i %i",&m,&n)!=EOF){ fo...
by Daredevil
Tue Apr 01, 2003 8:25 am
Forum: Volume 8 (800-899)
Topic: 839 - Not so Mobile
Replies: 21
Views: 8520

839 Why WA Please help me!!

Equilibrium in this problem is defined as a condition where the product of the left distance with the TOTAL left mobile weight (although there may be a sub mobile in the left mobile not equilibrium) equals to that of the right. Example: Input = 0 12 96 1 1 2 3 2 2 4 2 4 Left - mobile : 0 left distan...
by Daredevil
Tue Apr 01, 2003 8:10 am
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 26635

492 WA !!!!!!!!!!!!!!!

What's wrong with this: C : #include<stdio.h> #include<string.h> #include<ctype.h> long len,i,k,dir; char a[1000000]; void main(){ while(gets(a)){ len=strlen(a); for(i=0;i<len;i++){ if(isalpha(a )){ if(a =='A'||a =='a'||a =='i'||a =='I'||a =='e'||a =='E'||a =='u'||a =='U'||a =='o'||a[i]=='O'){dir=1;...
by Daredevil
Tue Apr 01, 2003 7:54 am
Forum: Volume 101 (10100-10199)
Topic: 10195 - The Knights Of The Round Table
Replies: 59
Views: 16102

10195 - Why WA?

What's wrong with my program?

C :

#include<stdio.h>
#include<math.h>
double a,b,c,s;
void main(){
while(scanf("%lf %lf %lf",&a,&b,&c)!=EOF){
s=(a+b+c)/2;a=sqrt((s-a)*(s-b)*(s-c)/s);
printf("The radius of the round table is: %.3lf\n",a);
}
}

Any comment is appreciated.
[/quote][/c]

Go to advanced search