Distinct Characters Queries
1234D1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
abacaba52 1 41 4 b1 5 b2 4 62 1 7
Output
312
Sample 2of 2
Input
dfcbbcfeeedbaea151 6 e1 4 b2 6 141 7 b1 12 c2 6 82 1 61 7 c1 2 f1 10 a2 7 91 10 a1 14 b1 1 f2 1 11
Output
52526
58%
1234D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)