3 ms·
A cleaner, more efficient version: http://ideone.com/B8p7m0 http://ideone.com/B8p7m0 Edit: A better way to write the inner loop: http://ideone.com/wEfNyh http:
by detrino 13y ago
A cleaner, more efficient version: http://ideone.com/B8p7m0 http://ideone.com/B8p7m0
Edit: A better way to write the inner loop: http://ideone.com/wEfNyh http://ideone.com/wEfNyh
Edit: When the values are initialized to 3, 4, 5 instead of 0, 0, 0, the program can be simplified to: http://ideone.com/oyNk1O http://ideone.com/oyNk1O