Advertisement
a53

Multime Gauss

a53
Jan 28th, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #define ULL unsigned long long int
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. ios_base::sync_with_stdio(0);
  8. cin.tie(0);
  9. cout.tie(0);
  10. ULL n;
  11. cin>>n;
  12. cout<<(ULL)ceil((-1+sqrt(n*8+1))/2);
  13. return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement