Accepted
正在同步测试数据,请稍后 [Hydro](https://hydro.ac)提供评测服务
代码
#include<iostream>
using namespace std;
int main() {
int a,b,c,A,B,C,res;
cin >> a >> b >> c;
A = 1; B = 1; C = 1; res = 1; //定义初始状态:只有1个方块时,边长都为1,1,1
// A --> a, B = C = 1, A++ --> res += (B+C-1)
res += (a-A) * (B+C-1);
A = a;
res += (b-B) * (A+C-1);
B = b;
res += (c-C) * (A+B-1);
cout << res << endl;
return 0;
}