PUSSY_LICKING_LOLI_69's blog

By PUSSY_LICKING_LOLI_69, history, 3 hours ago, In English

Link to the problem: https://codeforces.net/contest/741/problem/D

I came up with a solution using Small To Large and Xor Hashing, but my time complexity is $$$O(n*log^2(n)*26)$$$, which is still not optimized enough. It got the extra $$$log$$$ from using map, and I'm not sure of how to get rid of the map. Can someone help me pls?

My Code (I switched to unordered_map and it still TLEs)
»
37 minutes ago, # |
  Vote: I like it +1 Vote: I do not like it

Have you tried gp_hash_table?

  • »
    »
    12 minutes ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    https://codeforces.net/contest/741/submission/287873142

    I just tried it and it still TLEs. Cool DS tho, I've never seen that one :D

»
13 minutes ago, # |
  Vote: I like it +1 Vote: I do not like it

nice handle