본문 바로가기

백준/다시 풀기

백준 2163 파이썬

728x90

 

 

 

 

 

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