Run ID:93920

提交时间:2024-10-19 15:27:41

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