| Task: | Kortit | 
| Sender: | pedik228 | 
| Submission time: | 2022-11-01 20:28:45 +0200 | 
| Language: | Python3 (CPython3) | 
| Status: | READY | 
| Result: | 0 | 
| group | verdict | score | 
|---|---|---|
| #1 | RUNTIME ERROR | 0 | 
| test | verdict | time | |
|---|---|---|---|
| #1 | RUNTIME ERROR | 0.02 s | details | 
| #2 | RUNTIME ERROR | 0.02 s | details | 
| #3 | RUNTIME ERROR | 0.02 s | details | 
| #4 | RUNTIME ERROR | 0.02 s | details | 
| #5 | RUNTIME ERROR | 0.02 s | details | 
| #6 | RUNTIME ERROR | 0.02 s | details | 
Code
n=int(input())
b=[0]*n
s=y=0
for i in input().split():
    s+=int(i)
    b[s%n]+=1
for j in b:
    y+=j*(j-1)//2
print(y+b[0])
Test details
Test 1
Verdict: RUNTIME ERROR
| input | 
|---|
| 0 | 
| correct output | 
|---|
| NO | 
| user output | 
|---|
| (empty) | 
Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 4, in <module>
    fo...Test 2
Verdict: RUNTIME ERROR
| input | 
|---|
| 1 | 
| correct output | 
|---|
| NO | 
| user output | 
|---|
| (empty) | 
Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 4, in <module>
    fo...Test 3
Verdict: RUNTIME ERROR
| input | 
|---|
| 2 | 
| correct output | 
|---|
| MAYBE | 
| user output | 
|---|
| (empty) | 
Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 4, in <module>
    fo...Test 4
Verdict: RUNTIME ERROR
| input | 
|---|
| 26 | 
| correct output | 
|---|
| MAYBE | 
| user output | 
|---|
| (empty) | 
Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 4, in <module>
    fo...Test 5
Verdict: RUNTIME ERROR
| input | 
|---|
| 27 | 
| correct output | 
|---|
| YES | 
| user output | 
|---|
| (empty) | 
Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 4, in <module>
    fo...Test 6
Verdict: RUNTIME ERROR
| input | 
|---|
| 52 | 
| correct output | 
|---|
| YES | 
| user output | 
|---|
| (empty) | 
Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 4, in <module>
    fo...