{"problem":{"name":"The Number of Even Pairs","description":{"content":"We have $N+M$ balls, each of which has an integer written on it.   It is known that: *   The numbers written on $N$ of the balls are even. *   The numbers written on $M$ of the balls are odd. Find t","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc159_a"},"statements":[{"statement_type":"Markdown","content":"We have $N+M$ balls, each of which has an integer written on it.  \nIt is known that:\n\n*   The numbers written on $N$ of the balls are even.\n*   The numbers written on $M$ of the balls are odd.\n\nFind the number of ways to choose two of the $N+M$ balls (disregarding order) so that the sum of the numbers written on them is even.  \nIt can be shown that this count does not depend on the actual values written on the balls.\n\n## Constraints\n\n*   $0 \\leq N,M \\leq 100$\n*   $2 \\leq N+M$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$ $M$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc159_a","tags":[],"sample_group":[["2 1","1\n\nFor example, let us assume that the numbers written on the three balls are $1,2,4$.\n\n*   If we choose the two balls with $1$ and $2$, the sum is odd;\n*   If we choose the two balls with $1$ and $4$, the sum is odd;\n*   If we choose the two balls with $2$ and $4$, the sum is even.\n\nThus, the answer is $1$."],["4 3","9"],["1 1","0"],["13 3","81"],["0 3","3"]],"created_at":"2026-03-03 11:01:14"}}