Skip to content

Baekjoon 11170

1. Problem

문제 확인하기

2. Solution

for _ in range(int(input())):
    ans = 0
    n, m = input().split()
    for i in range(int(n), int(m)+1):
        ans += str(i).count('0')
    print(ans)