2 solutions

  • 0
    @ 2024-10-10 20:45:01
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
    	double n;
    	cin>>n;
    	cout<<ceil(n/2);
    	return 0;
    }
    • 0
      @ 2024-8-24 14:07:10
      n=int(input())
      if(n%2==0):
          print(int(n/2))
      else:
          print(int(n//2+1))
      
      
      • 1

      Information

      ID
      657
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      6
      Tags
      # Submissions
      17
      Accepted
      11
      Uploaded By