느낀 및 명 ¶
방 돌린 대 딩.
번 동.
번 동.
¶
~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); }