Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65217 邓嘉懿 05等差数列 C++ Accepted 2 MS 272 KB 163 2024-01-24 12:14:50

Tests(10/10):


Code:

#include <bits/stdc++.h>. using namespace std; int main (){ int a1,a2,a; cin >>a1>>a2>>a; int n=(a-1)*(a2-a1)+a1; cout<<n; return 0; }