Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed May 3, 2024
1 parent 39856d1 commit c8f38d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/friday.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
for _ in range(int(input())):
_, M = [int(d) for d in input().split()]
d = [int(d) for d in input().split()]
print(sum(sum(d[:i]) % 7 == 0 and d[i] >= 13 for i in range(M)))

0 comments on commit c8f38d3

Please sign in to comment.