N must be greater than equal to 2 * K and must be odd
if ( check > 0 && check % 2 == 1 ) { for ( int i = 0 ; i < K - 1 ; i ++ ) { Console . Write ( "1 ▁ " ) ; } Console . Write ( + check ) ; } else Console . WriteLine ( " - 1 ▁ " ) ; }