Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n; cin >> n;
if(n <= 2) cout << n << endl;
else{
cout << max(2LL,n / 2 - 2) << 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 16:39:06
- Judged At
- 2025-06-13 16:39:06
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 540.0 KiB