coderbiccubing
:
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbjsgbG9uZyBsb25nIHhbMjJdLCBjdXIsIHJlcyA9IDFlOTsKCmludCBtYWluKCkKewogICAgY2luID4+IG47CiAgICBmb3IgKGludCBpID0gMTsgaSA8PSBuOyArK2kpCiAgICAgICAgY2luID4+IHhbaV07CiAgICBzb3J0KHggKyAxLCB4ICsgbiArIDEpOwogICAgZm9yIChpbnQgaSA9IDE7IGkgPD0gbjsgKytpKQogICAgewogICAgICAgIGN1ciArPSB4W2ldOwogICAgICAgIGlmIChjdXIgKyAxIDwgeFtpICsgMV0pCiAgICAgICAgICAgIHJlcyA9IG1pbihyZXMsIGN1cik7CiAgICB9CiAgICBjb3V0IDw8IG1pbihyZXMsIGN1cikgKyAxOwp9Cg==