| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152250 | 解禾溪 | 05等差数列 | C++ | Compile Error | 0 MS | 0 KB | 4788 | 2026-04-24 18:56:19 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a1,a2,n; cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }
Main.cc:12:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:23:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:34:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:45:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:56:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:67:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:78:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:89:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:100:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:111:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:122:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:133:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:144:2: error: stray '#' in program
}#include // cin\cout\endl
^
Main.cc:12:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:18:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:23:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:29:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:34:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:40:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:45:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:51:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:56:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:62:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:67:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:73:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:78:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:84:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:89:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:95:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:100:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:106:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:111:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:117:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:122:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:128:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:133:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:139:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:144:3: error: 'include' does not name a type
}#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:150:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:7:5: note: 'int main()' previously defined here
int main(){
^