#PCBNAM0000012. Đối chiếu N bằng len (Compare Declared and Actual Counts)
Đối chiếu N bằng len (Compare Declared and Actual Counts)
Compare Declared and Actual Counts
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
The first line declares the count . The second line contains exactly integers, possibly signed, separated by whitespace. Print the declared count and the actual number of elements after splitting and converting the input.
Input
Line 1 contains integer . Line 2 contains exactly integers , separated by whitespace.
Output
Print the two integers and the actual number of elements, separated by one space.
Subtasks
- Subtask 1 — 100 points: ; for each . The element range is an Extended-version limit.
Examples
Input
3
1 2 3
Output
3 3
Explanation
The first line declares . Splitting the second line produces exactly three tokens: 1, 2, 3. Conversion and list(...) create a list of three integers. Since len(values)=3, the output is 3 3. Counting characters in 1 2 3 would incorrectly include spaces.