#71. sum13
sum13
Background
Description
Return the sum of the numbers in the array, returning 0 for an empty array. Except the number 13 is very unlucky, so it does not count and numbers that come immediately after a 13 also do not count.
Format
Input
Output
Samples
[1 2 2 1]
6
[1 1]
2
[1 2 2 1 13]
6
Limitation
1s, 1024KiB for each test case.