1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <iostream>

using namespace std;
int t[18]={10, 10, 7, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 10, 4, 10, 10, 10};
int t1[18]={10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 4, 3, 4, 10, 10, 10};
double suma, suma1;
int main()
{
    for(int i=0; i<t[18]; ++i)
    {
        double suma=0;
        for(int i=0; i<t[18]; ++i)
        {suma=suma+t[i];}
    }

    for(int j=0; j<t1[18]; ++j)
    {
        double suma1=0;
        for(int j=0; j<t1[18]; ++j)
        {suma1=suma1+t1[j];}
    }
    if(suma>suma1)
    {
        cout<<"Algosia"<<endl;}

    if(suma1>suma)
    {
        cout<<"Bajtek"<<endl;
    }

    if(suma==suma1)
        {  }
    return 0;
}