Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- ifstream df("U1.txt");
- ofstream rf("U1rez.txt");
- int n;
- int a[10000],i,ind=0;
- df>>n;
- for(i=1;i<=n;i++)
- {
- df>>a[i];
- }
- for(i=1;i<=n;i++)
- {
- if(a[i]%2==0)
- {
- ind=ind+1;
- }
- }
- if(ind>1) rf<<"NELYGINIS"<<endl;
- else rf<<"LYGINIS"<<endl;
- df.close();
- rf.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement