Sereja ans Anagrams
367B1900· candidate master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5 3 11 2 3 2 11 2 3
Output
21 3
Sample 2of 2
Input
6 3 21 3 2 2 3 11 2 3
Output
21 2
58%
367B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
5 3 11 2 3 2 11 2 3
21 3
6 3 21 3 2 2 3 11 2 3
21 2