#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
    3
    Tags
    # Submissions
    161
    Accepted
    81
    Uploaded By