Hello all, I participated in Codeforces Round #765 (Div. 2). I implemented a 0/1 Trie for {D. Binary Spiders} => {https://mirror.codeforces.com/contest/1625/problem/D}↵
↵
When I used C++1720 {https://mirror.codeforces.com/contest/1625/submission/142523361} it got an MLE verdict and the memory required is 262144 KB.↵
↵
However when I changed it to C++14 {https://mirror.codeforces.com/contest/1625/submission/142523239} it got an AC verdict and the memory required is 161068 KB.↵
↵
Why does this happen, how can the same code require so much more memory in C++20? Can anyone help me? Kinda seems like black magic to me.↵
↵
Thank you!
↵
When I used C++
↵
However when I changed it to C++14 {https://mirror.codeforces.com/contest/1625/submission/142523239} it got an AC verdict and the memory required is 161068 KB.↵
↵
Why does this happen, how can the same code require so much more memory in C++20? Can anyone help me? Kinda seems like black magic to me.↵
↵
Thank you!