Codeforces 347A A. Difference Row
摘要:
A. Difference Rowtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou want to arrangenintegersa1, a2, ..., anin some order in a row. Let's define the value of an arrangement as the sum of differences between all pairs of adjacent integers.More 阅读全文
posted @ 2013-09-21 14:20 天使是一个善良的神 阅读(277) 评论(0) 推荐(0)
浙公网安备 33010602011771号