well since my part 1 is having massive performance issues and the leaderboard is already fucked for it i guess it's time for a premature start to part 2
one of my solutions that i almost went through with is worst case at least exponential but probably bnetter in practice but i'm still not going to do that shit
O(6^n) is still literally the same as O(2^n) because it's a constant factor but yeah i think you're doing wait no the shit i was thinking of would fucking divide regions into up to *8* new ones
i'm trying a really scuffed intersect everything and offset double counting directly approach but i'm trying it on just the part 1 stuff and it's... slow
got it fully working on the first example and was on the verge of saying "wow, i guess the rest of the logic wasn't as shit as i worried" and then i ran the second example with just the stuff in the part 1 zone and it gave me 53012372
i thought my problem was with how i handle intersections of deleted regions but looks like i'm going way over the result before hitting any deleted regions other than the ones i insert in intersections of added regions
@emanresuA by the way i did literally talk about writing that
so i'm actually kind of surprised nobody got it lmao
so yeah my approach finally worked when i decided not to try treating off-commands the same as existing intersections by treating them the same as on-commands instead
> Node.js vs Python before going into the topic, it is better to know what Node.js and Python mean. Of course, in general words, it can also be called a programming language, but people call Python as a language python and Node.js as Node.