Check if it is possible to make the array and there are n - 1 pairs whose sum will be equal to s1
if ( c < n - 1 or isArrayPossible == False ) : NEW_LINE INDENT print ( "0" ) ; NEW_LINE DEDENT else : NEW_LINE INDENT print ( ans ) ; NEW_LINE DEDENT