| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
晕,在编译器上好好的来这里还要多用两次强制类型转换#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int counter;
cin>>counter;
int num;
float sqr;
while(counter--)
{
cin>>num;
sqr=sqrt((float)num);//这里0.0
cout<<(int)sqr<<endl;//和这里0.0
}
return(0);
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator