Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
54941 | 该账号已封禁 | 求平方 | C++ | Accepted | 0 MS | 244 KB | 165 | 2024-11-01 15:11:30 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=1;i<=n-1;i++){ cout<<i*i<<","; } cout<<n*n<<endl; return 0; }