Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
2119 梅煦洋 将任何一个正整数的立方写成一组相邻奇数之和 C++ 通过 100 0 MS 252 KB 239 2019-11-08 21:04:12

Tests(9/9):


#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; }


测评信息: