一 一
来源:互联网 发布:stc15w104编程 编辑:程序博客网 时间:2024/04/26 14:58
#include <iostream>
using namespace std;
int main()
{
int a,b,c,d,m;
for (a=6;a<=200;++a)
{
m=a*a*a;
for (b=2;b<a;++b)
{
for (c=b;c<a;++c)
{
for (d=c;d<a;++d)
{
if (m==b*b*b+c*c*c+d*d*d)
cout<<"Cube = "<<a<<","<<" Tripe = "<<"("<<b<<","<<c<<","<<d<<")"<<endl;
}
}
}
}
return 0;
}
using namespace std;
int main()
{
int a,b,c,d,m;
for (a=6;a<=200;++a)
{
m=a*a*a;
for (b=2;b<a;++b)
{
for (c=b;c<a;++c)
{
for (d=c;d<a;++d)
{
if (m==b*b*b+c*c*c+d*d*d)
cout<<"Cube = "<<a<<","<<" Tripe = "<<"("<<b<<","<<c<<","<<d<<")"<<endl;
}
}
}
}
return 0;
}
- 一
- 《一》
- 一
- 一
- 一...
- 一
- 一
- (一)
- 一
- 一。
- (一)
- 一
- 一
- 一
- 一
- 一
- 一
- 一
- oracle视图创建/oracle多表创建视图问题
- exe调用dll中的对话框防资源冲突解决之道
- 使用EXP/IMP来进行数据库表的逻辑备份与恢复
- Lil Test and WIP about FLIP
- 循环改工作簿和工作表名
- 一 一
- 如何弹出文件另存为对话框CFileDialog
- wikioi1075 明明的随机数(2006年NOIP全国联赛普及组)
- 杭电动态规划23题
- 很有启发的一段话
- 《Sparse and Redundant Representations》第四章 追赶法的保证
- Google China New Grad Test 2014 Round A Problem E
- hdu2955 01背包变形
- 如何关闭应用程序本身 通过PostMessage函数可以实现