Please help in this question

Revision en1, by 650iq, 2023-11-14 13:23:16

Hi everyone i was trying this question from Atcoder — But im getting runtime error on my code. My approach is to build a segment tree where each node contains a map of charaters. And while we go up we keep on merging the maps into a single map and the return the size of the map as a answer to the query. Im not getting any WA but RE. Please help. Here is my submission


  Rev. Lang. By When Δ Comment
en2 English 650iq 2023-11-14 13:23:48 1 Tiny change: '\nof charaters. And ' -> '\nof characters. And '
en1 English 650iq 2023-11-14 13:23:16 514 Initial revision (published)