#include<bits/stdc++.h> using namespace std; int main(){ int s=0,n,a,b; cin>>a>>b>>n; s=(b-a)*(n-1)+a; cout<<s; return 0; }
使用您的 清北信奥登峰计划 通用账户