摘要: 题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1562 题意: 给定n,定义D(x,y) = min(|x-y|, n-|x-y|),然后给定数组d[i] = D(i,T[i])。 让你求一个0到n-1的排列T,下标i∈[0,n-1],满足 阅读全文
posted @ 2018-02-10 17:05 Leohh 阅读(139) 评论(0) 推荐(0) 编辑