Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define FIO \
- ios_base::sync_with_stdio(false); \
- cin.tie(NULL); \
- cout.tie(NULL);
- int main()
- {
- FIO;
- int n;
- cin >> n;
- int output = 0;
- while (output * output <= n)
- {
- output += 1;
- }
- output -= 1;
- cout << output << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement