Problem1904--小数之和

1904: 小数之和

Time Limit: 1.000 Sec  Memory Limit: 128 MB
Submit: 13  Solved: 15
[Submit] [Status] [Web Board] [Creator:]

Description

首先从键盘输入一个正整数n(n<100,代表数组元素个数),接着输入n个整数(代表数组元素)。然后再输入一个数x。

要求计算出数组中所有小于等于x的和。


Input




Sample Input

6
67 30 83 27 45 92 
35

Sample Output

57

Source/Category

wg 

[Submit] [Status]