Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
int32_t main() {
cin.tie(0) -> sync_with_stdio(0);
int n;
cin >> n;
int sq = sqrtl(n);
int ans = sq * 2;
if (sq * sq == n) ans -= 1;
cout << ans;
return 0;
}
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:32:58
- Judged At
- 2025-06-13 15:32:58
- Judged By
- Score
- 40
- Total Time
- 1ms
- Peak Memory
- 540.0 KiB