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

变换公式后注意精度就很简单了

Posted by yueyibo at 2017-02-01 13:15:51 on Problem 2109
http://blog.csdn.net/luckcircle/article/details/54808678
欢迎访问博客交流~
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
	double n,p,k;
	while(scanf("%lf %lf",&n,&p)!=EOF){
		k=(double)pow(p,1.0/n);
		printf("%.0lf\n",k);
	}
}

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