Merge Equal Elements
926E1900· candidate master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
65 2 1 1 2 2
Output
25 4
Sample 2of 3
Input
41000000000 1000000000 1000000000 1000000000
Output
11000000002
Sample 3of 3
Input
74 10 22 11 12 5 6
Output
74 10 22 11 12 5 6
58%
926E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)