#CCBCHBON0000008. Bỏ các điểm không hợp lệ (Ignore Invalid Scores)
Bỏ các điểm không hợp lệ (Ignore Invalid Scores)
Ignore Invalid Scores
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Among integer scores, retain only values in inclusive range . Print the number of valid scores and their sum. Print 0 0 if there are none.
Input
First , followed by exactly scores separated by whitespace.
Output
Print count sum separated by one space.
Subtasks
-
Subtask 1 (20%): ; .
-
Subtask 2 (30%): ; .
-
Subtask 3 (50%): ; .
Examples
Example 1
Input:
5
-1 0 10 11 4
Output:
3 14
Explanation:
Count and sum only scores from 0 to 10 inclusive.
Example 2
Input:
3
-5 100 -1
Output:
0 0
Explanation:
Count and sum only scores from 0 to 10 inclusive.