¶
했.
항 하.
항 하.
¶
~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);
}










