diff --git a/src/friday.py b/src/friday.py new file mode 100644 index 0000000..4dde509 --- /dev/null +++ b/src/friday.py @@ -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)))