ZhenlongDai/ACPR huggingface dataset:
Problem: p02729
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N,M=map(int,input().split())
res=(N*(N-1)+M*(M-1))/2
print(res)

Failing test case input:
-1 -92

Expected output:
4279


Actual output:
4279.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())
res=(N*(N-1)+M*(M-1))/2
print(int(res))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
 n,m = map(int,input().split())
 print(n * (n - 1) / 2 + m * (m - 1) / 2)
main()

Failing test case input:
4 -8

Expected output:
42


Actual output:
42.0


Fixed submission (verdict: Accepted):
def main():
 n,m = map(int,input().split())
 print(n * (n - 1) 
main()

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

if N != 0 and M != 0:
  answer = N*(N-1)/2 + M*(M-1)/2
  print(answer)
elif N == 0:
  answer = M*(M-1)/2
  print(answer)
else:
  answer = N*(N-1)/2
  print(answer)

Failing test case input:
0 -29

Expected output:
435


Actual output:
435.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

if N != 0 and M != 0:
  answer = N*(N-1)/2 + M*(M-1)/2
  print(int(answer))
elif N == 0:
  answer = M*(M-1)/2
  print(int(answer))
else:
  answer = N*(N-1)/2
  print(int(answer))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=map(int,input().split())
print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
0 -295

Expected output:
43660


Actual output:
43660.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())
print(int(N*(N-1)/2+M*(M-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
print((a * (a + 1) / 2) + (b * (b + 1) / 2))

Failing test case input:
-1 -173

Expected output:
15052


Actual output:
14878.0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print(int((a * (a - 1) / 2) + (b * (b - 1) / 2)))

Problem: p02729
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N,M=map(int,input().split())
a=M+N
print(a*(a-1)/2-M*N)

Failing test case input:
-1 -90

Expected output:
4096


Actual output:
4096.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())
a=M+N
print(int(a*(a-1)/2-M*N))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input().split()
N = int(S[0])
M = int(S[1])

print(N * (N-1)/2 + M * (M-1)/2)

Failing test case input:
0 -295

Expected output:
43660


Actual output:
43660.0


Fixed submission (verdict: Accepted):
S = input().split()
N = int(S[0])
M = int(S[1])

print(int(N * (N-1)/2 + M * (M-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())
print((N*(N-1) + M*(M-1))/2)

Failing test case input:
-60 0

Expected output:
1830


Actual output:
1830.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())
print(int((N*(N-1) + M*(M-1))/2))
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input().split()
M = int(S[0])
N = int(S[1])
a = (M*(M-1)/2) + (N*(N-1)/2)
print(a)

Failing test case input:
-1 -92

Expected output:
4279


Actual output:
4279.0


Fixed submission (verdict: Accepted):
S = input().split()
M = int(S[0])
N = int(S[1])
a = int((M*(M-1)/2) + (N*(N-1)/2))
print(a)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
print(n*(n-1)/2 + m*(m-1)/2)

Failing test case input:
376 1

Expected output:
70500


Actual output:
70500.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
print(int((n*(n-1)/2 + m*(m-1)/2)))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,m = map(int,input().split())
method = n*(n-1)/2 + m*(m-1)/2
print(method)

Failing test case input:
-13 2

Expected output:
92


Actual output:
92.0


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())
method = n*(n-1)/2 + m*(m-1)/2
print(int(method))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M = map(int,input().split())

if N == 0 or M == 0:
    print(1)
else:
    print(int(((M * (M - 1)) + (N * (N - 1))) / 2))

Failing test case input:
0 -295

Expected output:
43660


Actual output:
1


Fixed submission (verdict: Accepted):
N,M = map(int,input().split())

if M == 0:
    print(int((N * (N - 1)) / 2))
elif N == 0:
    print(int((M * (M - 1)) / 2))
    
else:
    print(int(((M * (M - 1)) + (N * (N - 1))) / 2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
val = input().split(' ')
n = int(val[0])
m = int(val[1])

result = n * (n-1) / 2 + m * (m-1) / 2

print(result)


Failing test case input:
-99 1

Expected output:
4950


Actual output:
4950.0


Fixed submission (verdict: Accepted):
val = input().split(' ')
n = int(val[0])
m = int(val[1])

result = n * (n-1) / 2 + m * (m-1) / 2

print(int(result))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, m = map(int, input().split())

print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
72 1

Expected output:
2556


Actual output:
2556.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())

print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M = input().split()

N = int(N)
M = int(M)

even = int
odd = int
final = int

even = (N*(N-1))/2
odd = (M*(M-1))/2
final = even + odd
print(final)

Failing test case input:
-1 -61

Expected output:
1892


Actual output:
1892.0


Fixed submission (verdict: Accepted):
N,M = input().split()

N = int(N)
M = int(M)

even = 0
odd = 0
final = int

even = (N*(N-1))/2
odd = (M*(M-1))/2
final = even + odd
print(int(final))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline

N, M = map(int, input().split())

print(N*(N-1) + M*(M-1))

Failing test case input:
-1 -61

Expected output:
1892


Actual output:
3784


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline

N, M = map(int, input().split())

print((N*(N-1) + M*(M-1))
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
result=0
n1=1
m1=1
for i in range(n-1,n+1):
    n1*=i
for k in range(m-1,m+1):
    m1*=k
print((n1+m1)/2)

Failing test case input:
14 -6

Expected output:
112


Actual output:
112.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
result=0
n1=1
m1=1
for i in range(n-1,n+1):
    n1*=i
for k in range(m-1,m+1):
    m1*=k
print(int((n1+m1)/2))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    N, M = map(int, input().split())

    e = N*(N-1)/2
    o = M*(M-1)/2

    ans = int(e + o)
    print(e, o, ans)


if __name__ == '__main__':
    main()

Failing test case input:
-44 0

Expected output:
990


Actual output:
990.0 0.0 990


Fixed submission (verdict: Accepted):
def main():
    N, M = map(int, input().split())

    e = N*(N-1)/2
    o = M*(M-1)/2

    ans = int(e + o)
    print(ans)


if __name__ == '__main__':
    main()

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

print((N * (N - 1) / 2) + (M * (M - 1) / 2))

Failing test case input:
13 -2

Expected output:
81


Actual output:
81.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

print((N * (N - 1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
c = 0
c += n*(n-1)/2
c += m*(m-1)/2
print(c)

Failing test case input:
10 -6

Expected output:
66


Actual output:
66.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
c = 0
c += int(n*(n-1)/2)
c += int(m*(m-1)/2)
print(c)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

e_e = N * (N - 1) / 2
o_o = M * (M - 1) / 2

print(e_e + o_o)

Failing test case input:
-1 -90

Expected output:
4096


Actual output:
4096.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

e_e = N * (N - 1) / 2
o_o = M * (M - 1) / 2

print(int(e_e + o_o))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=map(int,input().split())
print(int(N*(N-1)+M*(M-1))/2)

Failing test case input:
24 -6

Expected output:
297


Actual output:
297.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())
print(int(N*(N-1)/2+M*(M-1)/2))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,m = [int(x) for x in input().split()]
print((n * (n-1) / 2) + (m * (m-1) / 2))

Failing test case input:
-44 0

Expected output:
990


Actual output:
990.0


Fixed submission (verdict: Accepted):
n,m = [int(x) for x in input().split()]
print((n * (n-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int,input().split())

ans = (n*(n-1) + m*(m-1))/2

print(ans)

Failing test case input:
24 -6

Expected output:
297


Actual output:
297.0


Fixed submission (verdict: Accepted):
import math
n,m = map(int,input().split())

ans = (n*(n-1) + m*(m-1))/2

print(math.floor(ans))
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
data = input().split(" ")

N = int(data[0])
M = int(data[1])

ans = N*(N-1)/2
ans += M*(M-1)/2

print(ans)


Failing test case input:
-1 -295

Expected output:
43661


Actual output:
43661.0


Fixed submission (verdict: Accepted):
data = input().split(" ")
 
N = int(data[0])
M = int(data[1])
 
ans = N*(N-1)/2
ans += M*(M-1)/2
 
print(int(ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m= map(int, input().split())
print((n+m)*(n+m-1)/2-n*m/2)

Failing test case input:
-19 1

Expected output:
190


Actual output:
180.5


Fixed submission (verdict: Accepted):
m, n = map(int, input().split())
print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=input().split()
n=int(N)
m=int(M)
a=n*(n-1)
b=m*(m-1)
print(a+b)

Failing test case input:
560 1

Expected output:
156520


Actual output:
313040


Fixed submission (verdict: Accepted):
N,M=input().split()
n=int(N)
m=int(M)
a=int((n*(n-1))/2)
b=int((m*(m-1))/2)
print(a+b)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

ans = (N * (N - 1) + M * (M - 1)) / 2

print(ans)


Failing test case input:
-1 -92

Expected output:
4279


Actual output:
4279.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

ans = (N * (N - 1) + M * (M - 1)) / 2

print(int(ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())

print(int(n/2)+int(m/2))


Failing test case input:
6 -8

Expected output:
51


Actual output:
-1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())

print(int(a*(a-1)/2)+int(b*(b-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())

print(n*(n-1)/2+m*(m-1)/2)


Failing test case input:
-13 2

Expected output:
92


Actual output:
92.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())

print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,M=map(int,input().split())

print(N*(N-1)/2 + M*(M-1)/2)

Failing test case input:
-9 -1

Expected output:
46


Actual output:
46.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())

print(N*(N-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
print(n*(n-1)/2 + m*(m-1)/2)

Failing test case input:
-19 -1

Expected output:
191


Actual output:
191.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
print(int(n*(n-1)/2 + m*(m-1)/2))

Problem: p02729
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n,m = map(int,input().split())
print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
203 1

Expected output:
20503


Actual output:
20503.0


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())
print(n*(n-1)
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())

print(n*(n-1)/2 + m*(m-1)/2)

Failing test case input:
335 1

Expected output:
55945


Actual output:
55945.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())

print(n*(n-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

even = N*(N-1)/2
odd = M*(M-1)/2

print(even + odd)

Failing test case input:
14 -6

Expected output:
112


Actual output:
112.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

even = N*(N-1)/2
odd = M*(M-1)/2

print(int(even + odd))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())

ans = n * (n - 1) / 2 + m * (m - 1) / 2

print(ans)

Failing test case input:
14 -6

Expected output:
112


Actual output:
112.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())

ans = n * (n - 1) / 2 + m * (m - 1) / 2

print(int(ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
line = input().split()
n = int(line[0])
m = int(line[1])


eeCount = n * (n - 1)


ooCount = m * (m - 1)

print(eeCount + ooCount)

Failing test case input:
24 -6

Expected output:
297


Actual output:
594


Fixed submission (verdict: Accepted):
line = input().split()
n = int(line[0])
m = int(line[1])


eeCount = n * (n - 1) / 2


ooCount = m * (m - 1) / 2

print(int(eeCount + ooCount))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
print(n*(n-1)/2 + m*(m-1)/2)

Failing test case input:
-13 2

Expected output:
92


Actual output:
92.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
print(int(n*(n-1)/2 + m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=map(int,input().split())
if N<=1 and M<=1:
  print(0)
elif N<=1:
  print(M*(M-1)/2)
elif M<=1:
  print(N*(N-1)/2)
else:
  print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
13 -2

Expected output:
81


Actual output:
78.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())
if N<=1 and M<=1:
  print(0)
elif N<=1:
  print(M*(M-1)
elif M<=1:
  print(N*(N-1)
else:
  print(N*(N-1)

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, M = map(int, input().split())

print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
11 -19

Expected output:
245


Actual output:
245.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())
 
print(N*(N-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int, input().split()))
if a[0]<=1:
  n=0
else:
  n=a[0]*(a[0]-1)/2

if a[1]<=1:
  m=0
else:
  m=a[1]*(a[1]-1)/2
 
print(n+m)

Failing test case input:
238 0

Expected output:
28203


Actual output:
28203.0


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))
if a[0]==1:
  n=0
else:
  n=a[0]*(a[0]-1)/2

if a[1]==1:
  m=0
else:
  m=a[1]*(a[1]-1)/2
 
print(int(n+m))
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ST = input().split()
N = int(ST[0])
M = int(ST[1])
print((N*(N-1)+(M*(M-1)))/2)

Failing test case input:
-68 2

Expected output:
2347


Actual output:
2347.0


Fixed submission (verdict: Accepted):
ST = input().split()
N = int(ST[0])
M = int(ST[1])
print(int((N*(N-1)+(M*(M-1)))/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int,input().split())

print(N*(N-1)/2 + M*(M-1)/2)

Failing test case input:
560 1

Expected output:
156520


Actual output:
156520.0


Fixed submission (verdict: Accepted):
N, M = map(int,input().split())
 
print(N*(N-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
a=(n*(n-1))/2+(m*(m-1))/2
print(a)

Failing test case input:
-1 -61

Expected output:
1892


Actual output:
1892.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
a=(n*(n-1))/2+(m*(m-1))/2
a=int(a)
print(a)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def combination(M,N):
    return M*(M-1)/2+N*(N-1)/2
M,N=map (int,input().split())
x=combination(M,N)
print(x)


Failing test case input:
0 -295

Expected output:
43660


Actual output:
43660.0


Fixed submission (verdict: Accepted):
def combination(M,N):
    return M*(M-1)/2+N*(N-1)/2
M,N=map (int,input().split())
x=combination(M,N)
x=int(x)
print(x)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N, M = map(int, input().split())
print(N * (N - 1) + M * (M - 1))


Failing test case input:
6 -8

Expected output:
51


Actual output:
102


Fixed submission (verdict: Accepted):

N, M = map(int, input().split())
print(int(N * (N - 1) / 2 + M * (M - 1) / 2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int, input().split())
print(n*(n-1)+m*(m-1))

Failing test case input:
13 -2

Expected output:
81


Actual output:
162


Fixed submission (verdict: Accepted):
n,m = map(float, input().split())
print(int((n*(n-1)+m*(m-1))/2))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, M = map(int, input().split())

ans = N*(N-1) + M*(M-1)

print(ans)

Failing test case input:
560 1

Expected output:
156520


Actual output:
313040


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

ans = int(N*(N-1) /2+ M*(M-1)/2)

print(ans)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
print((n * (n-1) / 2) + (m * (m-1) / 2))

Failing test case input:
0 -295

Expected output:
43660


Actual output:
43660.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
print((n * (n-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
print((n+m)*(n+m-1)/2-n*m)


Failing test case input:
4 -8

Expected output:
42


Actual output:
42.0


Fixed submission (verdict: Accepted):
m, n = map(int, input().split())
print(int(n*(n-1)/2+m*(m-1)/2))
Problem: p02729
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N,M=map(int,input().split())

print('{}'.format((N*(N-1)/2+(M*(M-1))/2)))


Failing test case input:
-19 -1

Expected output:
191


Actual output:
191.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())

print(int((N*(N-1)/2+(M*(M-1))/2)))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num = input("")
num = num.split(" ")
N = int(num[0])
M = int(num[1])
a = N*(N-1) if N*(N-1) >= 0 else 0
b = M*(M-1) if M*(M-1) >= 0 else 0
print(a + b)

Failing test case input:
24 -6

Expected output:
297


Actual output:
594


Fixed submission (verdict: Accepted):
num = input("")
num = num.split(" ")
N = int(num[0])
M = int(num[1])
a = int(N*(N-1)/2) if N*(N-1) >= 0 else 0
b = int(M*(M-1)/2) if M*(M-1) >= 0 else 0
print(a + b)

Problem: p02729
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n, m = map(int, input().split())
print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
-68 2

Expected output:
2347


Actual output:
2347.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
print(n*(n-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
ans = (n * (n -1)) + (m * (m - 1))
print(ans)

Failing test case input:
-118 0

Expected output:
7021


Actual output:
14042


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

ans = (N * (N - 1) + M * (M - 1)) / 2

print(int(ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

n,m=map(int,input().split())
ans=n*(n-1)/2+m*(m-1)/2
print(ans)


Failing test case input:
11 -13

Expected output:
146


Actual output:
146.0


Fixed submission (verdict: Accepted):

n,m=map(int,input().split())
ans=n*(n-1)/2+m*(m-1)/2
print(int(ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
guu, ki = map(int, input().split())

print(guu*(guu-1)/2 + ki*(ki-1)/2)

Failing test case input:
0 -295

Expected output:
43660


Actual output:
43660.0


Fixed submission (verdict: Accepted):
guu, ki = map(int, input().split())

print(int(guu*(guu-1)/2 + ki*(ki-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M = map(int,input().split())
print(N*(N-1)/2 + M*(M-1)/2)

Failing test case input:
560 1

Expected output:
156520


Actual output:
156520.0


Fixed submission (verdict: Accepted):
N,M = map(int,input().split())
print(int(N*(N-1)/2 + M*(M-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
data = input().split()

a = int(data[0])
b = int(data[1])

print(a*(a-1)/2+b*(b-1)/2)


Failing test case input:
-68 2

Expected output:
2347


Actual output:
2347.0


Fixed submission (verdict: Accepted):
data = input().split()
 
a = int(data[0])
b = int(data[1])
ans = (a*(a-1)+b*(b-1))/2
print(int(ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int,input().split())

print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
-1 -92

Expected output:
4279


Actual output:
4279.0


Fixed submission (verdict: Accepted):
N, M = map(int,input().split())

print(N*(N-1)
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
print(n*(n-1)/2 +m*(m-1)/2 )

Failing test case input:
335 1

Expected output:
55945


Actual output:
55945.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
print(int(n*(n-1)/2 +m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,w=map(int,input().split())
print((n*w)*(n*w-1) /2)

Failing test case input:
-99 1

Expected output:
4950


Actual output:
4950.0


Fixed submission (verdict: Accepted):
n,w=map(int,input().split())
print((n*(n-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=map(int,input().split())
print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
376 1

Expected output:
70500


Actual output:
70500.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())
print(N*(N-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = input().split()
n = int(x[0])
m = int(x[1])
if n == 0:
  print(m * (m -1) /2)
elif m == 0:
  print(n * (n - 1) / 2)
else:
  k = m * (m -1) /2 + n * (n - 1) / 2
  print(k)

Failing test case input:
19 -24

Expected output:
471


Actual output:
471.0


Fixed submission (verdict: Accepted):
x = input().split()
n = int(x[0])
m = int(x[1])
if n == 0:
  print(int(m * (m -1) /2))
elif m == 0:
  print(int(n * (n - 1) / 2))
else:
  k = m * (m -1) /2 + n * (n - 1) / 2
  print(int(k))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
tmp = input().split(" ")
N = int(tmp[0])
M = int(tmp[1])

print(N * (N - 1) / 2 + M * (M - 1) / 2)

Failing test case input:
-60 0

Expected output:
1830


Actual output:
1830.0


Fixed submission (verdict: Accepted):
tmp = input().split(" ")
N = int(tmp[0])
M = int(tmp[1])
 
ans = N * (N - 1) / 2 + M * (M - 1) / 2

print(int(ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
 
print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
-13 2

Expected output:
92


Actual output:
92.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
 
print(n*(n-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(map(int,input().split()))
print((a[0]*(a[0]-1))+(a[1]*(a[1]-1)))

Failing test case input:
6 -8

Expected output:
51


Actual output:
102


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
out=int((a[0]*(a[0]-1))/2+(a[1]*(a[1]-1))/2)
print(out)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int,input().split())

print(1/2 * N * (N - 1) + 1/2 * M * (M - 1)) 

Failing test case input:
14 -6

Expected output:
112


Actual output:
112.0


Fixed submission (verdict: Accepted):
N, M = map(int,input().split())

print(int(1/2 * N * (N - 1) + 1/2 * M * (M - 1)))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split(' '))
print(N*(N-1)/2 + M*(M-1)/2)

Failing test case input:
-1 -92

Expected output:
4279


Actual output:
4279.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())
print(int(N*(N-1)/2 + M*(M-1)/2))
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M = map(int,input().split())
Q = N*(N-1)*0.5
P = M*(M-1)*0.5
print(P+Q)


Failing test case input:
11 -19

Expected output:
245


Actual output:
245.0


Fixed submission (verdict: Accepted):
N,M = map(int,input().split())
Q = N*(N-1)*0.5
P = M*(M-1)*0.5
print(int(P+Q))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int,input().split())

n1 = n*(n-1)/2

m1 = m*(m-1)/2

print(n1 + m1)


Failing test case input:
-44 0

Expected output:
990


Actual output:
990.0


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())

n1 = n*(n-1)/2

m1 = m*(m-1)/2

ans = int(n1 + m1)
print(ans)

Problem: p02729
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n,m = map(int,input().split())
print(n*(n-1)/2 + m*(m-1)/2)

Failing test case input:
129 1

Expected output:
8256


Actual output:
8256.0


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())

print(int(a*(a-1)/2 + b*(b-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=list(map(int,input().split()))
print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
560 1

Expected output:
156520


Actual output:
156520.0


Fixed submission (verdict: Accepted):
N,M=list(map(int,input().split()))
print(int(N*(N-1)/2+M*(M-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
print(int(n * (n - 1) / 2 + m * (m + 1) / 2))


Failing test case input:
11 -13

Expected output:
146


Actual output:
133


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
print(int(n * (n - 1) / 2 + m * (m - 1) / 2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
-1 -92

Expected output:
4279


Actual output:
4279.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
print(n*(n-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

print((N * (N-1) / 2) + (M * (M-1) / 2))

Failing test case input:
238 0

Expected output:
28203


Actual output:
28203.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

print(int((N * (N-1) / 2) + (M * (M-1) / 2)))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(a*(a-1)/2+b*(b-1)/2)

Failing test case input:
-1 -61

Expected output:
1892


Actual output:
1892.0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(a*(a-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = (int(i) for i in input().split())
print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
-1 -295

Expected output:
43661


Actual output:
43661.0


Fixed submission (verdict: Accepted):
n, m = (int(i) for i in input().split())
print(int(n*(n-1)/2+m*(m-1)/2))
Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,m=map(int,input().split())

print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
-60 0

Expected output:
1830


Actual output:
1830.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())

print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=map(int, input().split())
print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
203 1

Expected output:
20503


Actual output:
20503.0


Fixed submission (verdict: Accepted):
N,M=map(int, input().split())
i=N*(N-1)/2+M*(M-1)/2


print('%d' % i)

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
M, N = map(int, input().split())

print(M*(M-1)/2+N*(N-1)/2)

Failing test case input:
4 -8

Expected output:
42


Actual output:
42.0


Fixed submission (verdict: Accepted):
M, N = map(int, input().split())

print(int(M*(M-1)/2+N*(N-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=map(int,input().split())
print((N**2-N)/2 + (M**2-M)/2)

Failing test case input:
238 0

Expected output:
28203


Actual output:
28203.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())
Ans = (N**2-N)/2 + (M**2-M)/2
print(int(Ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m, n = map(int,input().split())
print( m*(m-1)/2 + n*(n-1)/2 )


Failing test case input:
-99 1

Expected output:
4950


Actual output:
4950.0


Fixed submission (verdict: Accepted):
m, n = map(int,input().split())
ans = int( m*(m-1)/2 + n*(n-1)/2 )
print(ans)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())
print(N*(N-1)/2 + M*(M-1)/2)

Failing test case input:
-1 -39

Expected output:
781


Actual output:
781.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())
print(int(N*(N-1)/2 + M*(M-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
if n==0: 
    print(n*(n-1)/2)
elif m==0:
    print(m*(m-1)/2)
else:
    print(n*(n-1)/2+m*(m-1)/2)


Failing test case input:
72 1

Expected output:
2556


Actual output:
2556.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
if n==0: 
    print(int(m*(m-1)/2))
elif m==0:
    print(int(n*(n-1)/2))
else:
    print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,M = map(int,input().split())















ans = N*int(N/2) + M*int(M/2)
print(ans)


Failing test case input:
19 -24

Expected output:
471


Actual output:
459


Fixed submission (verdict: Accepted):
N,M = map(int,input().split())















ans = N*(N-1)/2 + M*(M-1)/2

print(int(ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M= map(int,input().split())
print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
335 1

Expected output:
55945


Actual output:
55945.0


Fixed submission (verdict: Accepted):
N,M= map(int,input().split())
print(N*(N-1)
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=map(int,input().split())
print((N*(N-1)+M*(M-1))/2)

Failing test case input:
-19 1

Expected output:
190


Actual output:
190.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())
print(int(N*(N-1)/2+M*(M-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M = list(map(int,input().split()))
ans = N*(N-1)/2 + M*(M-1)/2
print(ans)

Failing test case input:
19 -13

Expected output:
262


Actual output:
262.0


Fixed submission (verdict: Accepted):
N,M = list(map(int,input().split()))
ans = (N*(N-1)
print(ans)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M= map(int,input().split())
print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
-1 -92

Expected output:
4279


Actual output:
4279.0


Fixed submission (verdict: Accepted):
N,M= map(int,input().split())
print(N*(N-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

X = (N * (N-1) / 2) + (M * (M-1) / 2)

print(X)

Failing test case input:
-19 1

Expected output:
190


Actual output:
190.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

X = int((N * (N-1) / 2) + (M * (M-1) / 2))

print(X)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = [int(c) for c in input().split()]
print(n*(n-1)/2 + m*(m-1)/2)

Failing test case input:
-1 -118

Expected output:
7022


Actual output:
7022.0


Fixed submission (verdict: Accepted):
n, m = [int(c) for c in input().split()]
print(int(n*(n-1)/2 + m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int,input().split())
print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
-9 -1

Expected output:
46


Actual output:
46.0


Fixed submission (verdict: Accepted):
n, m = map(int,input().split())
print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
x=n*(n-1)/2+m*(m-1)/2
print(x)

Failing test case input:
289 0

Expected output:
41616


Actual output:
41616.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())
result = (N+M)*(N+M-1)/2 - N*M
print(result)

Failing test case input:
-9 -1

Expected output:
46


Actual output:
46.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())
result = (N+M)*(N+M-1)/2 - N*M
print(int(result))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
print(n * (n - 1)/ 2 + m * (m - 1) / 2)


Failing test case input:
-118 0

Expected output:
7021


Actual output:
7021.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
print(int(n * (n - 1) / 2 + m * (m - 1) / 2))
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
print(n*(n-1) + m*(m-1))

Failing test case input:
10 -6

Expected output:
66


Actual output:
132


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())


print((n*(n-1) + m*(m-1))

Problem: p02729
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, M = map(int, input().split())

print(M*M + N*N)


Failing test case input:
4 -8

Expected output:
42


Actual output:
80


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

print(int(M*(M-1)/2 + N*(N-1)/2))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
 n,m = map(int,input().split())
 print(n + (n - 1) / 2 + m * (m - 1) / 2)
main()

Failing test case input:
19 -13

Expected output:
262


Actual output:
119.0


Fixed submission (verdict: Accepted):
def main():
 n,m = map(int,input().split())
 print(n * (n - 1) 
main()

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M = input().split()

N = int(N)
M = int(M)

even = 0
odd = 0
final = 0

even = (N*(N-1))/2
odd = (M*(M-1))/2
final = even + odd
print(final)

Failing test case input:
10 -6

Expected output:
66


Actual output:
66.0


Fixed submission (verdict: Accepted):
N,M = input().split()

N = int(N)
M = int(M)

even = 0
odd = 0
final = int

even = (N*(N-1))/2
odd = (M*(M-1))/2
final = even + odd
print(int(final))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M = map(int,input().split())
print(N*(N-1)/2+M*(M-1)/2)


Failing test case input:
-68 1

Expected output:
2346


Actual output:
2346.0


Fixed submission (verdict: Accepted):
N,M = map(int,input().split())
print(N*(N-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = [int(i) for i in input().split()]
print((n*(n-1)+m*(m-1))/2)

Failing test case input:
-1 -61

Expected output:
1892


Actual output:
1892.0


Fixed submission (verdict: Accepted):
n, m = [int(i) for i in input().split()]
print(int((n*(n-1)+m*(m-1))/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
o, e = input().split()
o = int(o);
e = int(e);

num1 = o * (o-1) / 2;
num2 = e * (e-1) / 2;

print(num1+num2)

Failing test case input:
11 -13

Expected output:
146


Actual output:
146.0


Fixed submission (verdict: Accepted):
o, e = input().split()
o = int(o);
e = int(e);

num1 = o * (o-1) / 2;
num2 = e * (e-1) / 2;

print(int(num1+num2))

Problem: p02729
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = list(map(int, input().split()))
print(int(a[0]*(a[0]-1)+a[1]*(a[1]-1)))

Failing test case input:
-68 2

Expected output:
2347


Actual output:
4694


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))
print(int((a[0]*(a[0]-1)+a[1]*(a[1]-1))/2))
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n,k = input().split()
n = int(n) 
k = int(k)
se = 0

if k > 1:
    if n > 1:
        se = math.factorial(k)
    else:
        se= math.factorial(k)
else:
    if n > 1:
        se =  math.factorial(n)
    else:
        se = 0
print(se)

Failing test case input:
44 1

Expected output:
946


Actual output:
2658271574788448768043625811014615890319638528000000000


Fixed submission (verdict: Accepted):
import math
def fac(k):
    return(math.factorial(k)


n,k = input().split()
n = int(n) 
k = int(k)
se = 0

if k > 1:
    if n > 1:
        se = fac(k) + fac(n)
    else:
        se= fac(k)
else:
    if n > 1:
        se =  fac(n)
    else:
        se = 0
print(se)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
H, W = map(int, input().split())

a = (H * (H-1))/2
b = (W * (W-1))/2

print(a+b)


Failing test case input:
19 -13

Expected output:
262


Actual output:
262.0


Fixed submission (verdict: Accepted):
import math
H, W = map(int, input().split())

a = (H * (H-1))/2
b = (W * (W-1))/2

print(int(a+b))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int,input().split())
print((n**2 - n + m**2 - m)/2)

Failing test case input:
203 1

Expected output:
20503


Actual output:
20503.0


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())
print((n**2 - n + m**2 - m)

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,m=map(int,input().split())

print(n*(n-1)/2+m*(m-1)/2)


Failing test case input:
0 -29

Expected output:
435


Actual output:
435.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())

print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N,M=map(int,input().split())
print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
72 1

Expected output:
2556


Actual output:
2556.0


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())
a=M+N
print(int(a*(a-1)/2-M*N))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

Ans = (N*(N-1)/2) + (M*(M-1)/2)
print(Ans)

Failing test case input:
44 1

Expected output:
946


Actual output:
946.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

Ans = (N*(N-1)
print(Ans)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=map(int,input().split())
ans=(N*N-1)/2+(M*M-1)/2
print(int(ans))

Failing test case input:
-1 -118

Expected output:
7022


Actual output:
6961


Fixed submission (verdict: Accepted):
N,M=map(int,input().split())
ans=N*(N-1)/2+M*(M-1)/2
print(int(ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
data = input().split()
N = int(data[0])
M = int(data[1])

C = N * (N - 1) / 2 + M * (M - 1) / 2
print(C)


Failing test case input:
-19 -1

Expected output:
191


Actual output:
191.0


Fixed submission (verdict: Accepted):
data = input().split()
N = int(data[0])
M = int(data[1])

C = N * (N - 1) / 2 + M * (M - 1) / 2
print(int(C))
Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, M = map(int, input().split())
print((N*(N-1)/2) + (M*(M-1)/2))

Failing test case input:
-19 1

Expected output:
190


Actual output:
190.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())
print(int((N*(N-1)/2) + (M*(M-1)/2)))

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,m= map(int, input().split())
 
print(((n*(n-1))+m*(m-1))/2)

Failing test case input:
129 1

Expected output:
8256


Actual output:
8256.0


Fixed submission (verdict: Accepted):
n,m= map(int, input().split())
 
print(int(((n*(n-1))+m*(m-1))/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,n=map(int,input().split())
print(m*(m-1)+n*(n-1))

Failing test case input:
-19 1

Expected output:
190


Actual output:
380


Fixed submission (verdict: Accepted):
m,n=map(int,input().split())
print(m*(m-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, (input().split()))
ans = N * (N - 1) / 2 + M * (M - 1) / 2
print(ans)

Failing test case input:
-13 2

Expected output:
92


Actual output:
92.0


Fixed submission (verdict: Accepted):
N, M = map(int, (input().split()))
ans = int(N * (N - 1) / 2 + M * (M - 1) / 2)
print(ans)

Problem: p02729
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,m=map(int,input().split())

print(n*(n-1)+m*(m-1))


Failing test case input:
0 -295

Expected output:
43660


Actual output:
87320


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())

print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=map(int, input().split())
print(N*(N-1)+M*(M-1))

Failing test case input:
24 -6

Expected output:
297


Actual output:
594


Fixed submission (verdict: Accepted):
N,M=map(int, input().split())
print(N*(N-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N, M = map(int, input().split())
print(N * (N - 1) / 2 + M * (M - 1) / 2)


Failing test case input:
376 1

Expected output:
70500


Actual output:
70500.0


Fixed submission (verdict: Accepted):

N, M = map(int, input().split())
print(int(N * (N - 1) / 2 + M * (M - 1) / 2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M=input().split( )
N=int(N)
M=int(M)

M2=(M*(M-1))/2 
N2=(N*(N-1))/2
A=M2+N2
A

Failing test case input:
-60 0

Expected output:
1830


Actual output:

Fixed submission (verdict: Accepted):
N,M=input().split( )
N=int(N)
M=int(M)

M2=(M*(M-1))/2 
N2=(N*(N-1))/2
A=M2+N2
A=int(A)
print(A)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int, input().split())
print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
-99 1

Expected output:
4950


Actual output:
4950.0


Fixed submission (verdict: Accepted):
n,m = map(int, input().split())
print(int(n*(n-1)/2+m*(m-1)/2))
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())

if n==1 and m==1:
  print("0")
if n==1:
  print(m/2)
if m==1:
  print(n/2)
else:
    print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
-1 -173

Expected output:
15052


Actual output:
15052.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())

if n==1 and m==1:
  print("0")
if n==1 and not m==1:
  print(m*(m-1)
if m==1 and not n==1:
  print(n*(n-1)
if not m==1 and not n==1:
    print(n*(n-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int, input().split()))
if a[0]==1:
  n=0
else:
  n=a[0]*(a[0]-1)/2

if a[1]==1:
  m=0
else:
  m=a[1]*(a[1]-1)/2
 
print(n+m)

Failing test case input:
-1 -39

Expected output:
781


Actual output:
781.0


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))
if a[0]==1:
  n=0
else:
  n=a[0]*(a[0]-1)/2

if a[1]==1:
  m=0
else:
  m=a[1]*(a[1]-1)/2
 
print(int(n+m))

Problem: p02729
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n,m=map(int,input().split())
print((n*(n-1)/2)+(m*(m-1)/2))

Failing test case input:
129 1

Expected output:
8256


Actual output:
8256.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
print((n*(n-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())
method1 = N*(N-1)/2
method2 = M*(M-1)/2
method=method1+method2
print(str(method))


Failing test case input:
129 1

Expected output:
8256


Actual output:
8256.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())
method1 = N*(N-1)/2
method2 = M*(M-1)/2
method=method1+method2
print(str(round(method)))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

N, M = map(int, input().split())

def com(n,r):
    ans1 = 1
    ans2 = 1
    tmp = r
    while r != 0:
        ans1 = ans1 * (n)
        ans2 = ans2 * r
        n -= 1
        r -= 1

    return ans1/ans2

print(com(N,2)+com(M,2))


Failing test case input:
-1 -295

Expected output:
43661


Actual output:
43661.0


Fixed submission (verdict: Accepted):
import sys

N, M = map(int, input().split())

def com(n,r):
    ans1 = 1
    ans2 = 1
    tmp = r
    while r != 0:
        ans1 = ans1 * (n)
        ans2 = ans2 * r
        n -= 1
        r -= 1

    return ans1/ans2

print(int(com(N,2)+com(M,2)))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

print((N*(N-1)+M*(M-1))/2)


Failing test case input:
24 -6

Expected output:
297


Actual output:
297.0


Fixed submission (verdict: Accepted):

N, M = map(int, input().split())
print((N*(N-1)+M*(M-1))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int,input().split())
print(n*(n-1)/2+m*(m-1)/2)

Failing test case input:
-44 0

Expected output:
990


Actual output:
990.0


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())
print(int(n*(n-1)/2+m*(m-1)/2))
Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = (int(x) for x in input().split())
print(N*(N-1)/2+M*(M-1)/2)

Failing test case input:
19 -13

Expected output:
262


Actual output:
262.0


Fixed submission (verdict: Accepted):
N, M = (int(x) for x in input().split())
print(N*(N-1)

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
if n==0: 
    print((n*(n-1))/2)
elif m==0:
    print((m*(m-1))/2)
else:
    print(int(n*(n-1)/2+m*(m-1)/2))


Failing test case input:
-44 0

Expected output:
990


Actual output:
0.0


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
if n==0: 
    print(int(m*(m-1)/2))
elif m==0:
    print(int(n*(n-1)/2))
else:
    print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
ans = (n+m)*(n+m-1) / 2
print(ans-(n*m))

Failing test case input:
11 -13

Expected output:
146


Actual output:
146.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
ans = (n+m)*(n+m-1) / 2
print(int(ans-(n*m)))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, M = map(int, input().split())

print(N * (N-1) / 2 + M * (M - 1)/2)

Failing test case input:
238 0

Expected output:
28203


Actual output:
28203.0


Fixed submission (verdict: Accepted):
N, M = map(int, input().split())

print(int(N * (N-1) / 2 + M * (M - 1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
print((n+m)*(n+m+1)/2-n*m/2)

Failing test case input:
-13 2

Expected output:
92


Actual output:
68.0


Fixed submission (verdict: Accepted):
m, n = map(int, input().split())
print(int(n*(n-1)/2+m*(m-1)/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

n,m=map(int,input().split())
ans=n*(n-1)/2+(m-1)/2
print(ans)


Failing test case input:
-1 -118

Expected output:
7022


Actual output:
-58.5


Fixed submission (verdict: Accepted):

n,m=map(int,input().split())
ans=n*(n-1)/2+m*(m-1)/2
print(int(ans))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
data = input().split()
N = int(data[0])
M = int(data[1])

C = N * (N - 1) / 2 + M * (M - 1) / 2
print(str(C))


Failing test case input:
13 -2

Expected output:
81


Actual output:
81.0


Fixed submission (verdict: Accepted):
data = input().split()
N = int(data[0])
M = int(data[1])

C = N * (N - 1) / 2 + M * (M - 1) / 2
print(int(C))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
print((n*(n-1) + m*(m-1))/2)

Failing test case input:
11 -19

Expected output:
245


Actual output:
245.0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
print(round((n*(n-1) + m*(m-1))/2))

Problem: p02729
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int, input().split())
print(int((n+m)*(n+m-1))-n*m)

Failing test case input:
24 -6

Expected output:
297


Actual output:
450


Fixed submission (verdict: Accepted):
n,m = map(int, input().split())
print(int(((n+m)*(n+m-1)/2-n*m)))