/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 4ms 532.0 KiB
#2 Accepted 4ms 532.0 KiB
#3 Accepted 4ms 532.0 KiB

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