| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 1991 | 龚施宇 | 将任何一个正整数的立方写成一组相邻奇数之和 | C++ | Wrong Answer | 0 | 0 MS | 248 KB | 238 | 2019-11-03 13:06:08 |
#include<iostream> using namespace std; void smwl(int n){ int a,b; a=n*n*n; cout<<(n*n-n+1); for(b=1;b<n;b++){ cout<<(n*n-n+1)+(b*2); } } int main(){ int n; while(cin>>n){ smwl(n); cout<<endl; } return 0; }