C++代码
2026-10-03 13:20:08
发布于:湖南
0阅读
0回复
0点赞
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll n,m,x;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n >> m;
for( int i = n,j = m;min( i,j ) > 0;i--,j-- ) x += i * j;
cout << x;
return 0;
}
这里空空如也






有帮助,赞一个