POJ 2109
来源:互联网 发布:程序员能做到多少岁 编辑:程序博客网 时间:2024/06/05 06:16
题意:给出一个指数x与一个数字y,要求输出x√y的结果。
代码:
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double n ,e,t;
while(cin>>n>>e)
{
t=1;
while(pow(t,n)!=e)t++;
cout<<t<<endl;
}
return 0;
}
#include<cmath>
using
int
{
}
- POJ 2109
- poj 2488
- POJ 3299
- poj 1905
- POJ 2485 Highways
- POj 1017 Packets
- poj 1020 搜索
- poj 3278 宽搜
- poj 1426 宽搜
- poj 1925 Spiderman
- poj 3259 Wormholes
- POJ 2160 BOX
- POJ 2190 ISBN
- poj 3299 humidex
- poj 2253 Frogger
- poj 2485 Highways
- poj 3041 Asteroids
- poj 数论 1845
- CSharpThinking
- POJ 1976
- 利用new定义二维数组,delete删除…
- POJ 2101
- POJ 2105
- POJ 2109
- POJ 2116
- POJ 2136
- POJ 2160 BOX
- POJ 2190 ISBN
- HDU 4278
- C++左移右移操作符研究
- C++的类型转换符:static_cast、dy…
- 虚妄的奇迹,血泪的现实——记Fate&n…