In today's contest, I submitted my F2 solution, it passed pretests and I was like, that's nice, nothing can go wrong, right? But in system tests, it failed, and I thought that's possible I'm dumb, looked at tests, and it was this
I thought it was about __lg(0), which I remembered it should've returned -1 and should've been totally fine, I wanted to test it and ran it on my computer and it used pretty much no memory, I knew Codeforces and my computers compiler can act differently, I said I've seen this one and ran the test on custom test, but it used pretty much no memory too, that had to be a mistake, I checked the compiler, the code and it was all same, is custom test judger different than system test one?
I thought that was weird but it got weirder, I was using c++20 before, switched to c++17 64 and the result was same, but on c++17 32, it got accepted and ran flawlessly on custom tests too, why is this happening?
Submissions and custom test results:
Contest submission: 132875579
C++17 64 submission: 132931778
C++17 submission: 132931841
C++20 custom test:
C++17 64 custom test:
(I'm sorry for everyone who got blind because of my grammar)