rengetsu

ProcedurProgramavimas_2.17

Apr 5th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6.     long long int n, a[100000],lyg=0,nlyg=0;
  7.     cin>>n;
  8.     for(long long int i=0;i<n;i++)
  9.     {
  10.         if(n>100000){break;}
  11.         cin>>a[i];
  12.         if(a[i]%2==0){lyg+=1;}else{nlyg+=1;}
  13.     }
  14. if(nlyg>lyg){cout<<"LYGINIS"<<endl;}
  15. else{cout<<"NELYGINIS"<<endl;}
  16. return 0;
  17. }
Add Comment
Please, Sign In to add comment