#include <stdio.h>
#include <stdlib.h>
#include <time.h>
typedef int vint10[10];
typedef int vint20[20];
int main(void) {
vint10 a, b;
vint20 c;
for(int i = 0; i < 10; i++) {
printf("a[%02d]=%2d, b[%02d]=%2d\n", i
, a
[i
], i
, b
[i
]); }
for(int i = 0; i < 20; i++) {
c[i] = i < 10 ? a[i] : b[i-10];
printf("c[%02d]=%2d\n", i
, c
[i
]); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHRpbWUuaD4KCnR5cGVkZWYgaW50IHZpbnQxMFsxMF07CnR5cGVkZWYgaW50IHZpbnQyMFsyMF07CgppbnQgbWFpbih2b2lkKSB7CiAgICB2aW50MTAgYSwgYjsKICAgIHZpbnQyMCBjOwogICAgc3JhbmQodGltZShOVUxMKSk7CiAgICBmb3IoaW50IGkgPSAwOyBpIDwgMTA7IGkrKykgewogICAgICAgIGFbaV0gPSByYW5kKCkgJSAxMDA7CiAgICAgICAgYltpXSA9IHJhbmQoKSAlIDEwMDsKICAgICAgICBwcmludGYoImFbJTAyZF09JTJkLCBiWyUwMmRdPSUyZFxuIiwgaSwgYVtpXSwgaSwgYltpXSk7CiAgICB9CiAgICBwcmludGYoIi0tLVxuIik7CiAgICBmb3IoaW50IGkgPSAwOyBpIDwgMjA7IGkrKykgewogICAgICAgIGNbaV0gPSBpIDwgMTAgPyBhW2ldIDogYltpLTEwXTsKICAgICAgICBwcmludGYoImNbJTAyZF09JTJkXG4iLCBpLCBjW2ldKTsKICAgIH0KICAgIHJldHVybiAwOwp9Cg==
a[00]=56, b[00]= 5
a[01]= 8, b[01]=87
a[02]=89, b[02]=93
a[03]=69, b[03]=49
a[04]= 1, b[04]=72
a[05]=48, b[05]=79
a[06]=87, b[06]=50
a[07]= 2, b[07]=17
a[08]=19, b[08]= 6
a[09]=20, b[09]= 3
---
c[00]=56
c[01]= 8
c[02]=89
c[03]=69
c[04]= 1
c[05]=48
c[06]=87
c[07]= 2
c[08]=19
c[09]=20
c[10]= 5
c[11]=87
c[12]=93
c[13]=49
c[14]=72
c[15]=79
c[16]=50
c[17]=17
c[18]= 6
c[19]= 3