传送门:http://www.lydsy.com/JudgeOnline/problem.php?id=4128 [题解] 矩阵版本的BSGS. 至于如何不需要求逆,详见:http://www.cnblogs.com/galaxies/p/bzoj2480.html # include <map> # include <math.h> # include <stdio.h> # include <string.h> # include <iostrea…
March 16, 2016 Problem statement:Given a 2D array (matrix) named M, print all items of M in a spiral order, clockwise.For example: M = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 The clockwise spiral pr…