This question is rigged


#1

even c++ editorial solution doesn’t pass. sorry


#2

There are solutions that pass.