windows2k wrote:Hello, I have passed the problem before rejudge.
But I got TLE all the time.
Could someone offer an proper algorithm to solve the problem?
Thx
http://online-judge.uva.es/board/viewto ... ight=10606
Moderator: Board moderators
windows2k wrote:Hello, I have passed the problem before rejudge.
But I got TLE all the time.
Could someone offer an proper algorithm to solve the problem?
Thx

/*
Name: Squre root
Number: 10023
Type : math
Process : ON
Author :Salman Zaman
Email : zamansalman@gmail.com
Date : 24/08/05 23:31
*/
#include<stdio.h>
#include<math.h>
//#include<conio.h>
int main(){
long double y;
long n;
// freopen("10023.txt","r",stdin);
scanf("%ld",&n);
for(;n;n--){
scanf("%lf",&y);
printf("%.0lf\n\n",sqrtl(y));
}
// getch();
return 0;
}
Users browsing this forum: No registered users and 1 guest