Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Needed help in COMPFEST 15 — Preliminary Online Mirror (Unrated, ICPC Rules) Problem C

Правка en1, от Suiiinaldo, 2023-09-11 00:06:16

1866C - Completely Searching for Inversions

What is leading my solution to go memory limit exceeded? Please Help. And Can Anybody give hint about the correct approach. I am going with the complete brute force approach of calculating the Z Array and then finding the number of inversion in linear time. I was calculating the Z Array according to the given question.

My Submissions are as follows: 221686347 221686896

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Suiiinaldo 2023-09-11 00:06:16 510 Initial revision (published)