Answers for "packaging cupcakes codechef solution"

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

Browse Popular Code Answers by Language