cf/mirror

Merge Equal Elements

CF
926E1900· candidate master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
6
5 2 1 1 2 2
Output
2
5 4
Sample 2of 3
Input
4
1000000000 1000000000 1000000000 1000000000
Output
1
1000000002
Sample 3of 3
Input
7
4 10 22 11 12 5 6
Output
7
4 10 22 11 12 5 6
926E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)