#abc328a. A - Not Too Hard
A - Not Too Hard
Score : points
问题描述
存在一场包含 道题目的编程竞赛。对于每个 ,第 道题目的分数为 。
请输出所有分数不大于 的题目总分。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
There is a programming contest with problems. For each , the score for the -th problem is .
Print the total score for all problems with a score of or less.
Constraints
- All input values are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
6 200
100 675 201 200 199 328
Sample Output 1
499
Three problems have a score of or less: the first, fourth, and fifth, for a total score of .
Sample Input 2
8 675
675 675 675 675 675 675 675 675
Sample Output 2
5400
Sample Input 3
8 674
675 675 675 675 675 675 675 675
Sample Output 3
0
update @ 2024/3/10 01:52:12