Information
- ID
- 702
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- (None)
- # Submissions
- 141
- Accepted
- 29
- Uploaded By
#include<iostream>
using namespace std;
int main(){
int n,qwe=0;
cin>>n;
for(int i=1;i<=n;i++){
for(int j=1;j<=i;j++){
qwe=qwe+j;
}
cout<<qwe<<endl;
qwe=0;
}
return 0;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.