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 shenyi0828 at 2009-03-04 21:38:51 on Problem 2109
void solve() {
     double res=0;
     while (true) {
           res++;
           if (pow(res,n)>=p) break;
     }
     cout<<res<<endl;
     return ;
}//wa

while(scanf("%lf%lf",&n,&p)==2)
	printf("%.0lf\n",pow(p,1.0/n));

//ac

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