We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e23b21 commit 5f744dcCopy full SHA for 5f744dc
Ad-Hoc/(CODECHEF)cachehit.py
@@ -0,0 +1,11 @@
1
+for _ in range(int(input())):
2
+ x,b,m = map(int, input().split())
3
+
4
+ a = list(map(int, input().split()))
5
6
+ c = 1
7
8
+ for i in range(m-1):
9
+ if (a[i]//b != a[i+1]//b):
10
+ c += 1
11
+ print(c)
0 commit comments