import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int T;
        int H;
        int W;
        int N;
        Scanner sc = new Scanner(System.in);
        T = sc.nextInt();
        for (int i = 0; i < T; i++) {
            H = sc.nextInt();
            W = sc.nextInt();
            N = sc.nextInt();
            if(N / H < 10){
                 if(N % H == 0){//나머지가 0일때 , (층수*100)+호수(호수는 몫)
                System.out.println((H*100)+(N/H));
                }else {//나머지가 0이 아닐때 , 나머지가 층수 몫+1이 호수
                System.out.println(((H%N)*100)+((N/H)+1));
                }
            }
        }
    }
}