文件名称:a.c
- 所属分类:
- 数学计算/工程计算
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- Cynth******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Finding special triples of the form (n, n + 1, n + 2)
Write a program that finds all triples of consecutive positive three-digit integers each of which is
the sum of two squares, that is, all triples of the form (n, n + 1, n + 2) such that:
• n, n+1 and n+2 are integers at least equal to 100 and at most equal to 999
• eachofn,n+1andn+2isoftheforma2+b2.-Finding special triples of the form (n, n+ 1, n+ 2)
Write a program that finds all triples of consecutive positive three-digit integers each of which is
the sum of two squares, that is, all triples of the form (n, n+ 1, n+ 2) such that:
• n, n+1 and n+2 are integers at least equal to 100 and at most equal to 999
• eachofn,n+1andn+2isoftheforma2+b2.
Write a program that finds all triples of consecutive positive three-digit integers each of which is
the sum of two squares, that is, all triples of the form (n, n + 1, n + 2) such that:
• n, n+1 and n+2 are integers at least equal to 100 and at most equal to 999
• eachofn,n+1andn+2isoftheforma2+b2.-Finding special triples of the form (n, n+ 1, n+ 2)
Write a program that finds all triples of consecutive positive three-digit integers each of which is
the sum of two squares, that is, all triples of the form (n, n+ 1, n+ 2) such that:
• n, n+1 and n+2 are integers at least equal to 100 and at most equal to 999
• eachofn,n+1andn+2isoftheforma2+b2.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
a.c