Four verdicts
transcript
You submit your code. The judge gives one verdict. Each verdict points to a cause. Learn to read them.
Wrong Answer means a value differed. Try the empty list. Check whether a total wrapped. It does not show a failing hidden test. You build the test from the verdict.
Time Limit Exceeded means too slow. The answer may be right. Count the steps at the largest input. Rebuilding a total each time is a common cause. A running total fixes it.
Runtime Error means a crash. A loop may read past the end. Try the empty list first. It fails on every list. The last index is the length minus one.
Accepted means every test passed. It passed inside every limit. Then read the editorial. Four tests are not the whole set.
The judge checks time first. Then the length of the output. Then every value, in order. The first failure names the verdict. So the verdict tells you where to look.
Read the verdict first. Full breakdown in the lecture.