for _ in range(int(input())): a,b,c = map(int, input().split()) print((a*100)+(c//a) if c%a==0 else (c%a*100)+(c//a+1))