Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
2136 朱秦千惠 将任何一个正整数的立方写成一组相邻奇数之和 C++ Accepted 100 0 MS 248 KB 162 2019-11-09 12:59:45

Tests(9/9):


#include<iostream> using namespace std; int main(){ int a,s=1; cin>>a; int b=a*a+a-1; while(s<=a){ cout<<b<<" "; b=b-2; s++; } return 0; }


Judgement Protocol: