• Interpreter gives different output than results


From: http://www.checkio.org/mission/restricted-sum/solve/

The result in the interpreter is different from the result in the results pane. For checkio([2,2,2,2,2,2]) the results pane claims my answer is 18 (incorrect), while the interpreter outputs 12 (correct). My solution code is attached.


Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36