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 |
Re:对,这是打表,但是这题即便是最麻烦的模拟也是0ms过,根本没必要打表~~In Reply To:Re:对,这是打表,但是这题即便是最麻烦的模拟也是0ms过,根本没必要打表~~ Posted by:Snow_storm at 2009-11-18 02:38:28 #include<iostream> #include<math.h> using namespace std; int main() { int n,k; double t; cin>>n; while(n--) { cin>>k; cout<<(int)sqrt((double)k)<<endl; } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator