#include <stdio.h>
#include <stdlib.h>
int main(){
int i,j,k;
int a,b;
int **mat;
mat
= (int **)malloc(a
* sizeof(int *));
for(i = 0; i < a; i++) {
mat
[i
] = (int *)malloc(b
* sizeof(int)); }
int val = 1;
for(i = 0; i < a; i++) {
for(j = 0; j < b; j++) {
mat[i][j] = val;
val++;
}
}
for(i=0;i<a;i++){
for(j=0;j<b;j++){
}
}
for(i = 0; i < a; i++) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCgppbnQgbWFpbigpewogICAgaW50IGksaixrOwogICAgaW50IGEsYjsKICAgIGludCAqKm1hdDsKICAgIHNjYW5mKCIlZCAlZCIsJmEsJmIpOwoKCW1hdCA9IChpbnQgKiopbWFsbG9jKGEgKiBzaXplb2YoaW50ICopKTsKICAgIAogICAgCglmb3IoaSA9IDA7IGkgPCBhOyBpKyspIHsKICAgICAgICBtYXRbaV0gPSAoaW50ICopbWFsbG9jKGIgKiBzaXplb2YoaW50KSk7CiAgICB9CglpbnQgdmFsID0gMTsKICAgIGZvcihpID0gMDsgaSA8IGE7IGkrKykgewogICAgICAgIGZvcihqID0gMDsgaiA8IGI7IGorKykgewogICAgICAgICAgICBtYXRbaV1bal0gPSB2YWw7CiAgICAgICAgICAgIHZhbCsrOwogICAgICAgIH0KICAgIH0KCQogICAgCiAgICBmb3IoaT0wO2k8YTtpKyspewogICAgICAgIGZvcihqPTA7ajxiO2orKyl7CiAgICAgICAgICAgIHByaW50ZigiJWQgIixtYXRbaV1bal0pOwogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9CiAgICAKICAgIGZvcihpID0gMDsgaSA8IGE7IGkrKykgewogICAgICAgIGZyZWUobWF0W2ldKTsKICAgIH0KICAgIGZyZWUobWF0KTsKCgogICAgcmV0dXJuIDA7Cn0K