Xoắn ốc

View as PDF

Submit solution

Points: 1.00
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Author:
Problem type
Allowed languages
Python

Attempt

Please login to see your submissions result.


Last updated: on Oct. 25, 2025, 12:41 p.m.

Problem

In ra ma trận xoắn ốc cấp ~N~, với các số trong ma trận đều là các số trong dãy Fibonacci.

Input

  • Một dòng duy nhất chứa số nguyên ~N~.

Output

In ra ma trận xoắn ốc cấp ~N~ với các phần tử là các số Fibonacci, mỗi hàng trên một dòng, các phần tử cách nhau một dấu cách.

Constraints

  • ~1 \le N \le 9~

Sample

Input Output
3
0 1 1 13 21 2 8 5 3

Comments

Please read the guidelines before commenting.


There are no comments at the moment.