#include <iostream>
using namespace std;
int main()
{
int a;
int count = 0;
int quotient = 0;
int remainder = 0;
cin >> a;
int **ptr;
ptr = new int*[a];
for (int i = 0; i < a; i++)
{
ptr[i] = new int[3];
}
while (count < a)
{
for (int i = 0; i < 3; i++)
{
cin >> ptr[count][i];
}
quotient = ptr[count][2] / ptr[count][0];
remainder = ptr[count][2] % ptr[count][0];
if (remainder == 0)
{
cout << ptr[count][0] * 100 + quotient << "\n";
}
else
{
cout << remainder * 100 + quotient + 1 << "\n";
}
count++;
}
for (int i = 0; i < a; i++)
{
delete[] ptr[i];
}
delete[] ptr;
return 0;
}