题意:给定n, p, 求pow(p, 1/n)

 

10955211 NY_lv10 2109 Accepted 196K 0MS C++ 192B 2012-10-25 18:56:50

 

View Code
#include <iostream>
#include <math.h>
using namespace std;

int main()
{
    double n, p;
    while (scanf("%lf %lf", &n, &p) !=EOF)
    {
        printf("%0.0lf\n", pow(p, 1/n));
    }
    return 0;
}

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-09-13
  • 2021-09-14
  • 2021-10-22
  • 2022-01-18
猜你喜欢
  • 2021-09-26
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2021-10-19
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案