Masala #ITTFWXAOL6
Xotira 32 MB
Vaqt 1000 ms
14
Matritsa #1
n
soni kiritiladi quyidagi (2*n-1)x(2*n-1) bo'lgan matritsani chop eting
testcasega qarang!
Kiruvchi ma'lumotlar:
n soni(0<n<100)
Chiquvchi ma'lumotlar:
matritsani chop eting
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
2 |
1 1 1 1 2 2 1 2 3 |
2 |
5 |
1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 1 2 3 3 3 3 3 3 3 1 2 3 4 4 4 4 4 4 1 2 3 4 5 5 5 5 5 1 2 3 4 5 6 6 6 6 1 2 3 4 5 6 7 7 7 1 2 3 4 5 6 7 8 8 1 2 3 4 5 6 7 8 9 |
3 |
7 |
1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 1 2 3 3 3 3 3 3 3 3 3 3 3 1 2 3 4 4 4 4 4 4 4 4 4 4 1 2 3 4 5 5 5 5 5 5 5 5 5 1 2 3 4 5 6 6 6 6 6 6 6 6 1 2 3 4 5 6 7 7 7 7 7 7 7 1 2 3 4 5 6 7 8 8 8 8 8 8 1 2 3 4 5 6 7 8 9 9 9 9 9 1 2 3 4 5 6 7 8 9 10 10 10 10 1 2 3 4 5 6 7 8 9 10 11 11 11 1 2 3 4 5 6 7 8 9 10 11 12 12 1 2 3 4 5 6 7 8 9 10 11 12 13 |
Izoh:
qiyin emas matritsadagi eng katta son 2*n-1ga teng