Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main(void) {
- int n,a[1000],i,b=0,c=0;
- scanf("%d",&n);
- for(i=0;i<n;i++){
- scanf("%d",&a[i]);
- if(a[i]%2==0){
- b++;
- }
- else c++;
- if(i>100){
- break;
- }
- }
- if(b>c){
- printf("NELYGINIS");
- }
- else printf("LYGINIS");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement