#abc331c. C - Sum of Numbers Greater Than Me
C - Sum of Numbers Greater Than Me
Score : points
问题描述
你已给出一个长度为 的序列 。
对于每个 ,解决以下问题:
问题:找出 中所有大于 的元素之和。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a sequence of length .
For each , solve the following problem.
Problem: Find the sum of all elements in that are greater than .
Constraints
- All input values are integers.
Input
The input is given from Standard Input in the following format:
Output
For each , let be the answer to the problem when . Print in this order, separated by spaces.
Sample Input 1
5
1 4 1 4 2
Sample Output 1
10 0 10 0 8
- For , the sum of elements greater than is .
- For , the sum of elements greater than is .
- For , the sum of elements greater than is .
- For , the sum of elements greater than is .
- For , the sum of elements greater than is .
Sample Input 2
10
31 42 59 26 53 58 97 93 23 54
Sample Output 2
456 414 190 487 361 249 0 97 513 307
Sample Input 3
50
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Sample Output 3
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
update @ 2024/3/10 01:15:19