https://www.acmicpc.net/problem/10250
#include <iostream>
using namespace std;
int main() {
int t,h,w,n;
cin>>t;
for(int i=0;i<t;i++){
cin>>h>>w>>n;
if(n%h==0) printf("%d%02d\n",h,n/h);
else printf("%d%02d\n",n%h,n/h+1);
}
}