i am making small errors (logical + syntax ) while forming logic (mostly corner cases) and writing code .Its takes me several minutes to debug those as a result i am not able to move to solve task D in div 2 contests . Please share some ideas regarding fast debugging .