Please help in this question

Правка en1, от 650iq, 2023-11-14 13:23:16

Hi everyone i was trying this question from Atcoder — https://atcoder.jp/contests/abc157/tasks/abc157_e 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 https://atcoder.jp/contests/abc157/submissions/47573702

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский 650iq 2023-11-14 13:23:48 1 Tiny change: '\nof charaters. And ' -> '\nof characters. And '
en1 Английский 650iq 2023-11-14 13:23:16 514 Initial revision (published)