摘要: 1539: A Boring Game 题目描述 Alice has nothing to do,so she decided to paly a game. Firstly, she has three heaps of stone. The number of three heaps of st 阅读全文
posted @ 2018-07-16 20:54 皮皮嘉 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1495: 螺旋矩阵 题目描述 给定一个正整数N,生成一个N*N的矩阵,矩阵中元素取值为1~N^2,1在左上角,其余各数按顺时针方向旋转前进,依次递增放置。例如,当N=4时,矩阵各元素如下:1 2 3 412 13 14 511 16 15 610 9 8 7在本题中,给定N,及矩阵中的某个位置(用 阅读全文
posted @ 2018-07-16 01:15 皮皮嘉 阅读(712) 评论(0) 推荐(0) 编辑