UVA 11875 - Brick Game

Problem PDF

Solution:

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