Answers for "code chef packaging cupcakes problem"

1

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;
}
Posted by: Guest on April-13-2021

Code answers related to "code chef packaging cupcakes problem"

Browse Popular Code Answers by Language