#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(){
int i, j, matriz[5][4], matriz5[4][5];
for (i = 0; i < 5; i++)
for(j = 0; j < 4; j++)
matriz
[i
][j
] = rand()%999;
for (i = 0; i < 5; i++) {
for(j = 0; j < 4; j++) {
}
}
for (i = 0; i < 5; i++) {
for(j = 0; j < 4; j++) {
matriz5[j][i] = matriz[i][j];
}
}
for (i = 0; i < 4; i++) {
for(j = 0; j < 5; j++) {
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHRpbWUuaD4KCmludCBtYWluKCl7CgogICAgaW50IGksIGosIG1hdHJpels1XVs0XSwgbWF0cml6NVs0XVs1XTsKICAgIHNyYW5kKHRpbWUoTlVMTCkpOwoKICAgIGZvciAoaSA9IDA7IGkgPCA1OyBpKyspCiAgICAgICAgZm9yKGogPSAwOyBqIDwgNDsgaisrKQogICAgICAgICAgICBtYXRyaXpbaV1bal0gPSByYW5kKCklOTk5OwoKICAgIGZvciAoaSA9IDA7IGkgPCA1OyBpKyspIHsKICAgICAgICBmb3IoaiA9IDA7IGogPCA0OyBqKyspIHsKICAgICAgICAgICAgcHJpbnRmKCIgJWQgIixtYXRyaXpbaV1bal0pOwogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9CiAgICBwcmludGYoIlxuXG5UcmFuc3Bvc3RhOlxuIik7CgogICAgZm9yIChpID0gMDsgaSA8IDU7IGkrKykgewogICAgICAgIGZvcihqID0gMDsgaiA8IDQ7IGorKykgewogICAgICAgICAgICBtYXRyaXo1W2pdW2ldID0gbWF0cml6W2ldW2pdOwogICAgICAgIH0KICAgIH0KCiAgICBmb3IgKGkgPSAwOyBpIDwgNDsgaSsrKSB7CiAgICAgICAgZm9yKGogPSAwOyBqIDwgNTsgaisrKSB7CiAgICAgICAgICAgIHByaW50ZigiICVkICIsbWF0cml6NVtpXVtqXSk7CiAgICAgICAgfQogICAgICAgIHByaW50ZigiXG4iKTsKICAgIH0KCiAgICByZXR1cm4gMDsKfQo=