Compute the number of ways to choose two subsets
Input Specification
The input contains the integer
Output Specification
Output the number of ways to choose the subsets
Sample Input 1
Copy
3 10000
Sample Output 1
Copy
9
Sample Input 2
Copy
4 10000
Sample Output 2
Copy
21
Sample Input 3
Copy
100 100000000
Sample Output 3
Copy
3107203
Constraints
Test Case | Additional Constraints | |
---|---|---|
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 |
Comments