Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
CF B
erfanul007
Jan 5th, 2019
289
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<bits/stdc++.h>
#include<cmath>
using namespace std;
int main()
{
int n,x,y;
cin>>n;
x=ceil(sqrt((double)n));
y=ceil((double)n/x);
cout<<x+y<<endl;
return 0;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Claims he can drag the moon down
4 sec ago | 0.61 KB
Cloud somersaults to his cave
12 min ago | 0.28 KB
Pine tree transformation
18 min ago | 0.86 KB
Mastered the art of cloud somersaulting, whic...
23 min ago | 0.69 KB
Free Technique
CSS | 23 min ago | 0.65 KB
Big $$$ Strategy
CSS | 23 min ago | 0.65 KB
12.OOO IN 2-DAY
CSS | 23 min ago | 0.65 KB
3 miles in half a day
39 min ago | 1.05 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!