Code
#include <iostream>
using namespace std;
int main(){
int n,a,b,sum;
cin>>n;
a=n/2;
b=n/a;
sum = n+a+b;
cout<<sum<<endl;
return 0;
}
Information
- Submit By
- Type
- Pretest
- Problem
- P1176 Free chocolate
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-02-26 07:05:09
- Judged At
- 2025-02-26 07:05:09
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 320.0 KiB