110,500
社区成员
发帖
与我相关
我的任务
分享
//offset = 偏移量;左负右正。
for (x = 0;x<i.length;i++)
if (offset>x || x>i.length+offset) Console.Write("0 ");
else Console("{0} ",i[x-offset])
for (x=0;x<i.length;x++)
Console.Write("{0} ",i[(x+offset)%i.length]); //offset为偏移量。