UVA 11364 - Parking

Problem PDF

Solution:

#include
#include
using namespace std;
int main()
{
    int a[109],t,n,i,s;
    scanf("%d",&t);
    while(t--)
    {
        s=0;
        scanf("%d",&n);
        for(i=0;i
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11364/11364.cpp