Accepted
Code
#include<bits/stdc++.h>
using namespace std;
int main() {
int t,count = 0;
cin>>t;
for(int i =1;i*i<=t;i++){
if(i*i<=t){
count++;
}
if(i*(i+1)<=t){
count++;
}
}
cout<<count<<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:47:07
- Judged At
- 2025-06-13 15:47:07
- Judged By
- Score
- 100
- Total Time
- 4ms
- Peak Memory
- 768.0 KiB