Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
48420 | 张予馨 | 求平方 | C++ | Accepted | 1 MS | 248 KB | 163 | 2024-06-07 16:16:44 |
#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; }