Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109781 | 吴梓玄 | 22第n项的数 | C | Compile Error | 0 MS | 0 KB | 270 | 2025-02-11 15:25:43 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,x[10]; cin>>n; for(int i=0;i<4;i++){ cin>>x[i]; } int a=x[1]-x[0]; int b=x[2]-x[1]; if(a==b){ cout<<x[0]+(n-1)*a; } else{ cout<<int(x[0]*pow(x[1]/x[0],n-1)); } return 0; }
Main.c:1:25: fatal error: bits/stdc++.h: No such file or directory #include ^ compilation terminated.