当前位置:
首页 资源下载
搜索资源 - sum of all integers from 1 to
搜索资源列表
-
0下载:
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to comp
-
-
0下载:
This program finds the sum of all integers from 1 up to the number entered, excluding all numbers divisible by 3 and all even numbers that are less than 10 and display sum.
-
-
0下载:
The Triangle
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述
7
3 8
8 1 0
2 7 4 4
4 5 2 6 5
(Figure 1)
Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route that starts at the top and
-
-
0下载:
函数一:判断从3到100之间有多少个素数,并输出所有的素数
函数二:如果一个数恰好等于它的因子之和,那么这个数就称为 "完数 ".此程序是找出1--500之间的所有完数并输出出来
函数三:有1、2、3四个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?
函数四:输入三个整数a,b,c,请把这三个数由小到大输出。
函数五:输出乘法表(9*9)-Function one: determine how many prime numbers between 3-100 from
-