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

一个语句AC,真的很帅!对double

Posted by xujy828 at 2010-03-13 14:28:46 on Problem 2109
#include<iostream>
#include<cmath>
using namespace std;

int main()
{
	double n,m;
	while(scanf("%lf%lf",&n,&m)==2)
		printf("%.0lf\n",pow(m,1/n));
	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