Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- //#include <bits/stdc++.h>
- using namespace std;
- int main() {
- int n;
- cin>>n;
- int suma = 0;
- vector<pair<int,int>> domino;
- for(int i = 0; i<=n; i++) {
- for(int j = i; j<=n; j++) {
- suma += i + j;
- }
- }
- cout<<suma;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement