题解 | #等差数列#
等差数列
http://www.nowcoder.com/practice/f792cb014ed0474fb8f53389e7d9c07f
const total = readline() const min = 2 const max = ( 3 * ( total -1 ) ) + 2 const res = ( min + max ) * total / 2 print( res )
等差数列
http://www.nowcoder.com/practice/f792cb014ed0474fb8f53389e7d9c07f
const total = readline() const min = 2 const max = ( 3 * ( total -1 ) ) + 2 const res = ( min + max ) * total / 2 print( res )
相关推荐