···
include [HTML_REMOVED]
using namespace std;
int main(){
int n , m ;
cin >> n >> m;
for(int i = 0, k = 1; i< n ; i++){//循环n次
for(int j = 0; j < m-1; j++){//循环m-1次
cout << k << ' ';
k++;
}
cout << "PUM" << endl;
k++;
}
return 0;
}
···