Advertisement
a53

suma_cons

a53
Oct 15th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n;
  7. cin>>n;
  8. cout<<(1ULL*n*n+2*n+1)/4;
  9. return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement