1015 水仙花数
来源:互联网 发布:剑网三南风捏脸数据 编辑:程序博客网 时间:2024/06/02 04:48
1015 水仙花数
#include <iostream>#include <cstdlib>#include <stdio.h>#include <algorithm>#include <math.h>#include <string.h>#include <queue>#include <stack>typedef long long ll;using namespace std;int main(){ /*for(int i=1 ;i<+9 ;i++){ for (int j=0; j<=9; j++){ for(int k=0 ; k<=9;k++){ if(i*i*i+j*j*j+k*k*k==i*100+j*10+k){ cout<<i*100+j*10+k<<endl;} } } } */ int n; cin>>n; if(n<=153)cout<<153<<endl; else if (n>153&&n<=370)cout<<370<<endl; else if (n==371)cout<<371<<endl; else if (n>371&&n<=407)cout<<407<<endl; else cout<<1634<<endl; return 0;}
0 0
- 1015 水仙花数
- 51NOD 1015 水仙花数
- 51nod 1015 水仙花数
- 51nod 1015 水仙花数
- 51nod-【1015 水仙花数】
- 51nod 1015 水仙花数
- 51Nod 1015 水仙花数
- 【51Nod】1015 水仙花数
- 51Nod--1015 水仙花数
- 51Nod 1015 水仙花数
- 51nod 1015 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- android studio导入项目
- python3入门日志(1)
- JavaScript模块化
- hdu5813
- href="javascript:xxx(this);"和onclick="javascript:xxx(this);"的使用误区
- 1015 水仙花数
- PHP安全编程之session固定获取合法会话
- Java 和 C# 最大的不同是什么?
- Android开发个人问题解决方案...
- 管理员提权之上
- pat 家谱处理
- Java_Pro3_枚举类深入2_08_10
- 湖南省赛七 RMQ with Shifts 裸的线段树
- linux文件系统初识