Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:对,这是打表,但是这题即便是最麻烦的模拟也是0ms过,根本没必要打表~~

Posted by Snow_storm at 2009-11-18 02:38:38 on Problem 1218
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator