| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2141 | 大聪明 | 将任何一个正整数的立方写成一组相邻奇数之和 | C++ | Accepted | 100 | 0 MS | 252 KB | 176 | 2019-11-09 17:10:03 |
#include<iostream> using namespace std; int main(){ int a; cin>>a; int last=a*a-a+1+(a-1)*2; for(int i=1;i<=a;i++){ cout<<last<<" "; last-=2; } return 0; }