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:c语言AC了 但C++死活WA.主程序都是一句,有兴趣的来看看WHY??!!

Posted by emperorlu at 2008-01-20 20:40:45 on Problem 2109
In Reply To:Re:c语言AC了 但C++死活WA.主程序都是一句,有兴趣的来看看WHY??!! Posted by:emperorlu at 2008-01-20 20:37:24
while(cin>>n>>p)
   cout<<dec<<pow(p,1.0/n)<<endl;

用十进制整数输出就行了。

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