Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main(void) {
  5. int n,a[1000],i,b=0,c=0;
  6. scanf("%d",&n);
  7. for(i=0;i<n;i++){
  8. scanf("%d",&a[i]);
  9. if(a[i]%2==0){
  10. b++;
  11. }
  12. else c++;
  13. if(i>100){
  14. break;
  15. }
  16. }
  17. if(b>c){
  18. printf("NELYGINIS");
  19. }
  20. else printf("LYGINIS");
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement