fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. long long s;
  7. long long k;
  8. cin>>s;
  9. k=sqrt(2*s+1);
  10. cout<<k;
  11. return 0;
  12. }
Success #stdin #stdout 0s 4140KB
stdin
13
stdout
5