#include <bits/stdc++.h>
using namespace std;
int main() {
int n,m,c;
cin>>n>>m>>c;
int x,y;
x=(c-1)/m+1;
y=c%m;
if (y==0){
y=m;
}
cout<<x<<" "<<y;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
int n,m,c;
cin>>n>>m>>c;
int x,y;
x=(c-1)/m+1;
y=c%m;
if (y==0){
y=m;
}
cout<<x<<" "<<y;
return 0;
}
评论区