home *** CD-ROM | disk | FTP | other *** search
- /*------------------------------------------------------------------*/
- /* ╡{ªí└╔ªW║┘: wat36.c */
- /*------------------------------------------------------------------*/
- #include <stdio.h>
- #include <math.h>
- #include <time.h>
-
- void main()
- {
- time_t begin_time, over_time;
- printf("¡p║Γññ, ╜╨╡y½▌....\n");
- begin_time = time(NULL);
- counter();
- over_time = time(NULL);
- printf("░⌡ªµ«╔╢íª@»╙╢OñF %u ¼φ─┴\n",(unsigned int)difftime(over_time,begin_time));
- }
-
- void counter(void)
-
- {
- int x,y;
- double p;
-
- p = 0.0;
- for(x=1;x<=1000;x++)
- for(y=1;y<=100;y++)
- p += sqrt((double)x*y+x+y+x/y);
- printf("%f\n",p);
- }