mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
15 lines
178 B
C++
15 lines
178 B
C++
#include <iostream>
|
|
using namespace std;
|
|
int main(){
|
|
int a,i,j;
|
|
cin >>a;
|
|
for(i=1;i<=a;i++){
|
|
cout <<i*i;
|
|
break;
|
|
}
|
|
for(j=i+1;j<=a;j++){
|
|
cout <<","<<j*j;
|
|
}
|
|
return 0;
|
|
}
|