Run ID:93923

提交时间:2024-10-19 15:29:24

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