Search found 20 matches

Thu Mar 21, 2002 12:29 pm
Forum: Volume 102 (10200-10299)
Topic: 10209 - Is This Integration ?
Replies: 37
Views: 12259
Thankx
Thu Mar 21, 2002 12:24 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20486
Thu Mar 21, 2002 8:56 am
Forum: Volume 102 (10200-10299)
Topic: 10209 - Is This Integration ?
Replies: 37
Views: 12259
i calculated the constants by pure math.whats wrong with it.thanks #include<stdio.h> #include<math.h> void main(void) { register int i; double a,x,y,z,temp,pi_3,sqrt3,cx,cy,cz; pi_3=2.0*acos(0.0)/3.0; sqrt3=sqrt(3.0); cx=(4.0-sqrt3-(2.0*pi_3)); cy=(pi_3+(2.0*sqrt3)-4.0); cz=(pi_3+1.0-sqrt3); while(1...
Thu Mar 21, 2002 8:55 am
Forum: Volume 6 (600-699)
Topic: 616 - Coconuts, Revisited
Replies: 37
Views: 11715
why it is wrong....i can't find anything #include<stdio.h> #include<math.h> int check(long int,long int); int main(void) { register long int i; long int num; double logged; while(1){ scanf("%ld",&num); if(num<0) break; for(i=ceil((double)sqrt(num));i>=2;i--){ if(check(i,num)) break; } if(i<2) printf...
Thu Mar 21, 2002 8:53 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20486
it got accepted long ago .but after rejudge it went wrong..i can't find why? help plz.. #include<stdio.h> #include<math.h> void main() { register unsigned long int i,j; unsigned long int h1,w,toth,idle; double temp; while(1){ scanf("%lu%lu",&h1,&w); if(h1==0&&w==0) break; if(h1==1){ idle=0; toth=w; ...