/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error Traceback (most recent call last): File "foo.py", line 7, in <module> ValueError: invalid literal for int() with base 10: '1 3\r' 14ms 3.117 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 7, in <module> ValueError: invalid literal for int() with base 10: '7 4 \r' 14ms 2.973 MiB

Code

t=int(input())
u=0
l=[]
for i in range(t):
  n=int(input())
  for j in range(n):
    j=int(input())
    l.append(j)
  for k in l:
    if k%3==0:
      u+=1
    elif k==0 :
      u+=1
  print(u)



Information

Submit By
Type
Submission
Problem
P1013 Divisible by 3
Contest
Brain booster - 1
Language
Python 3 (Python 3.12.3)
Submit At
2023-12-31 16:38:52
Judged At
2024-11-11 03:45:04
Judged By
Score
0
Total Time
14ms
Peak Memory
3.117 MiB