读书人

CF 342A(Xenia and Divisors-思考有限

发布时间: 2013-09-09 20:31:09 作者: rapoo

CF 342A(Xenia and Divisors-考虑有限情况)

A. Xenia and Divisorstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

Xenia the mathematician has a sequence consisting of n (n is divisible by 3) positive integers, each of them is at most 7. She wants to split the sequence into groups of three so that for each group of three a,?b,?c the following conditions held:

读书人网 >编程

热点推荐