| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2119 | 梅煦洋 | 将任何一个正整数的立方写成一组相邻奇数之和 | C++ | Accepted | 100 | 0 MS | 252 KB | 239 | 2019-11-08 21:04:12 |
#include<iostream> using namespace std; void qq(int GGboom){ int s,r=1; s=GGboom*GGboom-GGboom+1+2*(GGboom-1); while(r<=GGboom){ cout<<s<<" "; s-=2; r++; } } int main(){ int exe; cin>>exe; qq(exe); return 0; }