Ad Code

Responsive Advertisement

Dice Rolling

Author: Ismail Hosen

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;

}




Post a Comment

0 Comments