zoj 2952 Find All M^N Please
来源:互联网 发布:ubuntu可以干什么 编辑:程序博客网 时间:2024/06/05 08:58
/*直接暴力*/#define LOCAL#include<iostream>#include<cstdio>#include<cmath>#include<cstring>#include<cstdlib>#include<iomanip>#include<string>#include<algorithm>#include<ctime>#include<stack>#include<queue>#include<vector>#define N 50000#define MAX 2147483648using namespace std;int main(){#ifdef LOCAL freopen("input.txt","r",stdin); freopen("output.txt","w",stdout);#endif int i,j,t=(int)sqrt((double)MAX),k=0,ans[N]; for(i=2;i<=t;i++) { for(j=2;pow((double)i,(double)j)<MAX;j++)//注意这个条件 { ans[k++]=pow((double)i,(double)j); } } sort(ans,ans+k);//排序 cout<<ans[0]<<endl; for(i=1;i<k;i++) { if(ans[i]!=ans[i-1])//去重 cout<<ans[i]<<endl; } return 0;}
- zoj 2952 Find All M^N Please
- zoj 2952 Find All M^N Please
- ZOJ 2952 Find All M^N Please
- zoj Find All M^N Please
- ZOJ 2952 Find All M^N Please(数学啊 )
- ZOJ 2679 Old Bill ||ZOJ 2952 Find All M^N Please 两题水题
- ZOJ.2952 Find All M^N Please【数学】 2015/10/20
- TOJ1502Find All M^N Please
- Find m combinations from a N set
- Find m arrangements from n set
- 442. Find All Duplicates in an Array (M)
- 【LeetCode】442. Find All Duplicates in an Array【M】【60】
- [LinkedIn] Find all prime numbers below / less than integer n
- Find M Integers from an Array of Size N equally
- ZOJ 1905 All in All
- ZOJ 1970 All in All
- Hi, All, Please Enjoy Here.
- Select n numbers from 1 to m with all of array 'all' and none of array 'none'
- 关于VC多字节字符集和unicode宽字符集的使用和问题,只有明白了其中的原理,才能灵活解决问题
- 远程监控系统中控制端界面响应慢浅析
- Jexus web server V4.3版 正式发布
- 在ASP.NET中页面传值
- 亚洲销售女神徐鹤宁经典语录——太过精辟,不学必悔
- zoj 2952 Find All M^N Please
- Object中的equal()方法详细与"=="
- JavaScript1.6数组新特性和JQuery的几个工具方法
- Struts2 自定义日志 拦截器 interceptor
- 在Ubuntu上下载、编译和安装Android最新源代码
- rtp打包的FU-A方式
- Maven 的构建之 pom文件一些属性分析
- WIN7下不能安装WAS6.1.0.0的解决办法
- 写在2011暑假