样例输入:2
3样例输出:20
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- freopen("math.in", "r", stdin);
- freopen("math.out", "w", stdout);
- int a, b, ans;
- scanf("%d%d", &a, &b);
- ans = (a + b) * (b + 1);
- printf("%d\n", ans);
- fclose(stdin);
- fclose(stdout);
- return 0;
- }