Accepted
Code
#include <iostream>
using namespace std;
int main(){
int n,a,b,sum;
cin>>n;
a=n/2;
b=1+a/2;
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:16:58
- Judged At
- 2025-02-26 07:16:58
- Judged By
- Score
- 30
- Total Time
- 4ms
- Peak Memory
- 532.0 KiB