¶
근 공 고 그 .
그 .
그 .
¶
~cpp #include <math.h> #include <stdio.h> #include <time.h> void input_data(int*,int*,int*); void process(int, int, double); const int MINUTE=60; int main() { int time_in; // 기 간. ///// int x,y,t; ///// input_data(&x,&y,&t); time_in = clock(); // 기 간 . process(x,y,t); printf("CPU CLOCKS = %d\n", clock() - time_in); // 간 - 기 간 = 그 간 return 0; // 그 . } void input_data(int *x, int *y, int *t) { printf(" >>"); scanf("%d",x); printf(" 거 >>"); scanf("%d",y); printf("걸 간 >>"); scanf("%d",t); } void process(int x, int y, double t) { t=t/MINUTE; double answer=sqrt((float)(y*y+t*t*x*x)); answer+=y;answer/=t; printf("%.2f",answer); }