Cod sursa(job #2681619)
| Utilizator | Data | 5 decembrie 2020 22:43:38 | |
|---|---|---|---|
| Problema | Nivele | Scor | 20 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.51 kb |
#include <fstream>
using namespace std;
ifstream cin("nivele.in");
ofstream cout("nivele.out");
int citire()
{
int x;
cin >> x;
if(x == 0)
return 0;
int st = citire();
int dr = citire();
return x;
}
int main()
{
int t, n, x;
cin >> t;
for(int i = 1 ; i <= t ; i++)
{
cin >> n;
for(int j = 1 ; j <= n ; j++)
cin >> x;
(n & 1) ? cout << "DA \n" : cout << "NU \n";
}
return 0;
}
