Run ID:89300

提交时间:2024-08-23 14:53:26

#include<iostream> using namespace std; int main(){ int a1,a2,n,w; cin>>a1>>a2>>n; cout<<a1+(n-1)*(a2-a1); }