text: Count of distinct pair sum between two 1 to N value Arrays | C # implementation to find count of distinct pair sum between two 1 to N value Arrays ; Function to find the distinct sums ; Driver code
code: using System ; class GFG { static int findDistinctSums ( int N ) { return ( 2 * N - 1 ) ; } public static void Main ( ) { int N = 3 ; Console . Write ( findDistinctSums ( N ) ) ; } }