#include <stdio.h>

int main() {
    int n;
    int h, w , guest;
    int room;
    scanf("%d",&n);
    for(int i=0; i<n; i++) {
        room=0;
        scanf("%d %d %d", &h, &w, &guest);
        if(guest%h==0) {
            room+=h*100;
            room+=guest/h;
        } else{
            //층수
            room+=(guest%h)*100;
            //몇 호
            room+=(guest/h)+1;
        }
        printf("%d\n",room);
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: