POJ 2109.Power of Cryptography
来源:互联网 发布:安卓便签软件 编辑:程序博客网 时间:2024/06/16 07:11
题目:http://poj.org/problem?id=2109
AC代码(C++):
#include <iostream>#include <algorithm>#include <stdio.h>#include <vector>#include <queue>#include <math.h>#include <string>#include <string.h>#include <bitset>using namespace std; int main(void){ double n,p; while(cin>>n>>p)cout<<pow(p,1.0/n)<<endl;}总结:
基本功还是不够扎实, 首先double的范围是-1.7*10(-308)~1.7*10(308), 其次是n√p可以写成p^(1/n).
阅读全文
0 0
- poj 2109.Power of Cryptography
- POJ 2109.Power of Cryptography
- POJ 2109.Power of Cryptography
- 【POJ】Power of Cryptography
- Power of Cryptography poj
- poj 2109 Power of Cryptography
- poj 2109 Power of Cryptography
- POJ 2109 Power of Cryptography
- poj 2109 : Power of Cryptography
- POJ 2109 Power of Cryptography
- poj 2109 Power of Cryptography
- poj 2109 Power of Cryptography
- POJ 2109 Power of Cryptography
- POJ 2109 Power of Cryptography
- POJ 2109 Power of Cryptography
- poj 2109 Power of Cryptography
- POJ 2109 Power of Cryptography
- POJ 2109 Power of Cryptography
- MySQL默认约束
- Codeforces Round #436 (Div. 2) A-D题解
- C语言学习笔记——前言
- 1010 radix
- Codeforces 462C C. Appleman and Toastman【贪心】
- POJ 2109.Power of Cryptography
- Leetcode—3.Longest Substring Without Repeating Characters
- 使用Stanford Parser进行句法分析
- 前端工具——Bower
- linux中的echo命令
- Java8新特性 --- Lambda表达式教程
- Ubuntu15.10安装小结
- cookie和session
- 吴恩达第四周答案 Neural Networks: Representation