3 ms·With standard C style my solution is 12 LOC.by Maro 16y agoWith standard C style my solution is 12 LOC.