| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134650 | 李明秦 | 22第n项的数 | Python3 | Compile Error | 0 MS | 0 KB | 517 | 2025-10-31 17:16:28 |
#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(){ int n,a[101]={},d,q,num; cin>>n; for(int i=1;i<=4;i++){ cin>>a[i]; } d=a[2]-a[1]; q=a[3]-a[2]; if(d==q){ num=a[1]+(n-1)*d; }else{ num=a[1]*pow(a[2]/a[1],n-1); } cout<<num; return 0; }
File "Main.py", line 6
using namespace std;
^
SyntaxError: invalid syntax