随笔分类 -  练习

摘要:题目:Sorted Adjacent Differences 题目链接:https://vjudge.net/problem/CodeForces-1339B 思路: 题目给出一个长度为n的数列,要求把这些数重新排序,使得 |a1−a2| ≤ | a2−a3 | ≤ … ≤ | an−1−an | 阅读全文
posted @ 2020-05-29 21:49 emhhbw== 阅读(187) 评论(0) 推荐(0)
摘要:题目:Phoenix and Balance 题目链接:https://vjudge.net/problem/CodeForces-1348A 题目大意: 题目给出 t 组数据,对于每组数组给出一个n(n为偶数),将21 22 ........ 2n n 个数分成等份的两部分,求这两部分差的绝对值最 阅读全文
posted @ 2020-05-20 09:35 emhhbw== 阅读(198) 评论(1) 推荐(0)