456A Codeforces - Laptops


456 Codeforces


Laptops

Solution in c++

#include <iostream>

using namespace std;

int main()

{

    int a;

    string sol="Poor Alex\n";

    cin>>a;

    for(int i=0;i<a;i++){

        int in1,in2;

        cin>>in1>>in2;

        if(in2>in1)sol="Happy Alex\n";

    }

    cout<<sol;

    return 0;

}

Share on Google Plus

About Mohamed Sobhi

My name is Mo.Sobhy ,I study at School excelling high school in Ain Shams ,Cairo
My hobbies is programming ,and web development ,playing chess and writing horror stories.
    Blogger Comment
    Facebook Comment

0 التعليقات:

إرسال تعليق