#include<iostream> #include<cstdio> #include<limits.h> using namespace std; int n; int main(){ cin>>n; if(n%2==1){ cout<<n/2+1; } else{ cout<<n/2; } return 0; }

1 comments

  • @ 2024-3-23 12:11:01

    #include<iostream> #include<cstdio> #include<limits.h> using namespace std; int n; int main(){ cin>>n; if(n%2==1){ cout<<n/2+1; } else{ cout<<n/2; } return 0; }

    • 1

    Information

    ID
    473
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    4
    Tags
    # Submissions
    118
    Accepted
    55
    Uploaded By