eolymp
bolt
Try our new interface for solving problems
Problems

Кількість повних квадратів

published at 11/21/21, 11:24:11 pm

Отличное условие. Отличное описание.

published at 1/11/24, 6:25:03 pm

include <bits/stdc++.h>

define ll long long

define ld long double

using namespace std; int main(){

ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll n;
cin>>n;
ll ans = 1;
for(int i = 2; i<=sqrt(n); ++i){
    if(i*i <= n){
        ans++;
    }
}
cout<<ans;

}//TECHNOBLADE NEVER DIE