Daffodil International University
Problem Link
//Please follow from main function
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n, tc;
cin>>tc;
while(tc--){
cin>>n;
if(n%1)cout<<1+ (n/2)<<endl;
else cout<<n/2<<endl;
}
return 0;
}
uva
0 Comments