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

Help in this segment tree question

Правка en1, от NEERAJ2003, 2023-12-15 17:29:51

Question is: https://www.codechef.com/problems/BOMBING?tab=statement submission: https://www.codechef.com/viewsolution/1035044414 approach I was thinking solving with pref of array and (segment tree) that is counting the current open system and minus with count of all system having end less me and start greater than me and as element can be equal iam only updating there first occurrence count that resolve the things but still not accepting anyone can tell what the issue along with anyone similar question on codeforces. ( similar to codeforces 61E (https://codeforces.net/problemset/problem/61/e )

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский NEERAJ2003 2023-12-15 17:29:51 645 Initial revision (published)