I was just doing virtual on 1338A - Powered Addition.
I wrote the following code: 121160133
and it out puts "63" on this test: N = 5, A = {-9, -2, -2, 7, 5} on both versions of C++17.
But I thought __lg(0) is -1?
Does anyone have any idea?
(Also I tried to use custom invocation and try to exit once "ans" is changed to 63 but nothing happened.)