Programul este scris in Code::Blocks, incearca-l
#include <iostream>
using namespace std;
int main()
{
unsigned int i,n,nr,ninv,k;
ninv=0;k=0;//ninv- nr inversast
cin>>n;
for(i=1;i<=n;i++)
{
cin>>nr;
if(i==1)
{
while(nr!=0)
{
ninv=ninv*10+nr%10;
nr=nr/10;
}
}
if(i!=1&&nr==ninv)
k++;
}
if(k>=1)
cout<<"DA";
else
cout<<"NU";
return 0;
}