code chef packaging cupcakes problem code example
Example: packaging cupcakes codechef solution
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
int n;
for(int i=0;i<t;i++)
{
cin>>n;
cout<<n/2 +1<<endl;
}
return 0;
}