0分qwq
查看原帖
0分qwq
676611
SIRLRFanco楼主2022/10/3 11:12

附赠代码

#include<bits/stdc++.h>
using namespace std;

int main ()
{
    int a_first, a_second, num;
    cin >> a_first >> a_second >> num;
    cout << a_first * num + num * (num - 1) * (a_second - a_first) / 2;
    return 0;
}
2022/10/3 11:12
加载中...