/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 14ms 3.113 MiB
#2 Wrong Answer 14ms 2.922 MiB

Code

t = int(input())
u = 0
for i in range(t):
    n = int(input())
    a = list(map(int, input().split()))
    for k in range(len(a)):
      if k % 3 == 0 or k == 0:
        u += 1
      for j in range(1, len(a)):
        if (k + j) % 3 == 0 or (k + j) == 0:
          u += 1
        continue
    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:50:47
Judged At
2024-11-11 03:45:00
Judged By
Score
0
Total Time
14ms
Peak Memory
3.113 MiB