| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130738 | 郝王骏程 | 22第n项的数 | C++ | Wrong Answer | 1 MS | 276 KB | 581 | 2025-09-15 19:57:35 |
#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 a,b,c,d,e,s=0; cin>>e>>a>>b>>c>>d; if(b-a==c-b){ s=d; for(int i=a;i<=e-1;i++) { s+=b-a; } cout<<s; } else{ if(b/a==c/b){ s=d; for(int i=a;i<=e-1;i++) { s+=b/a; } cout<<s; } } return 0; }
------Input------
6 1 6 11 16
------Answer-----
26
------Your output-----
41