|
查看: 1291|回复: 3
|
有谁可以帮帮忙关于VB.NET的!!
[复制链接]
|
|
|
我学院的老师出了一道题目:
(Pythagorean Triples) Some right triangles havesides that are all integers. A set of three integer values for the sides of aright triangle is called a Pythagorean triple. These three sides must satisfythe relationship that the sum of the squares of the two sides is equal to thesquare of the hypotenuse. Write a program to find all Pythagorean triples forside1, side2, and hypotenuse none larger than 30. Use a triple tested For/Nextloop that tries all possibilities. This is an example of “brute force”computing. You will learn in more advanced computer science courses that thereare some problems for which there is no known algorithmic approach other thanusing sheer brute force.
班上的同学又不听课,全部要我做 ,请各位大大高抬贵手,帮个小忙!! |
|
|
|
|
|
|
|
|
|
|
发表于 28-5-2009 03:22 PM
|
显示全部楼层
现在的学生重量不重质,这样容易的题目都不会,
也不愿意用脑想想。学院到处都是,教育素质却如此差。 |
|
|
|
|
|
|
|
|
|
|
发表于 27-6-2009 09:52 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 3-7-2009 04:00 PM
|
显示全部楼层
一块蛋糕...酱简单都不会  |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|