using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { /* * 考核期间无聊,看到CSDN有一个逆向螺旋矩阵,看不懂,自己写了个, * 只要是找出规律问题就很好解决了,我的思路很简单,如下图: ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐ │ 1 2 3 4 5│ │ 1 2 3 4 5│ │ 1 2 3 4 5│ │ 1 2 3 4 5│ │ │ │ 6│ │ 6│ │16 6│ │ │→ │ 7│→ │ 7│→ │15 7│ │ │ │ 8│ │ 8│ │14 8│ │ │ │ 9│ │13 12 11 10 9│ │13 12 11 10 9│ └───────┘ └───────┘ └───────┘ └───────┘ */ static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.White;