Codeforces 456A. Laptops Solutions
- Solve in C++:
- ///**********ALLAH IS ALMIGHTY************///
- ///AH Tonmoy
- ///Department of CSE
- ///Islamic University,Bangladesh
- #include<iostream>
- using namespace std;
- int main()
- {
- int ar[100009],br[100009],n,i,c1=0,c2=0;
- cin>>n;
- for(i=0; i<n; i++)
- {
- cin>>ar[i]>>br[i];
- }
- for(i=0; i<n; i++)
- {
- if(ar[i]<br[i])
- {
- c1=1;
- cout<<"Happy Alex"<<endl;
- break;
- }
- if(c1==1)
- break;
- }
- if(c1==0)
- cout<<"Poor Alex"<<endl;
- }
No comments