https://www.codechef.com/viewsolution/34944223
PLEASE HELP ME SOLVE THIS
You have to count only if a ≤ x ≤ b But you are directly counting till c. Your code will fail if b<c. Try 1 2 2 4 6
a ≤ x ≤ b
c
Thanks a lot
now its correct