Advertisement
alex326

Untitled

Jan 21st, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. problema 2201
  2.  
  3. #include <iostream>
  4. using namespace std;
  5. int main()
  6. {
  7. long long int n;
  8. cin>>n;
  9. cout<<(n-1)*(n)/2;
  10.  
  11.  
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement