Accepted
Code
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ll n; cin>>n;
ll c=0;
for(ll i=1;i*i<=n;i++){
if(i*i<=n) c++;
if((i*(i+1))<=n) c++;}
cout<<c<<endl;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1191 A. Balanced Product
- Contest
- Brain Booster #10
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-06-13 15:55:33
- Judged At
- 2025-06-13 15:55:33
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB