Giter Club home page Giter Club logo

bill-codechef's Introduction

bill-codechef

PROBLEM STATEMENT

Chef and his girlfriend go on a date. Chef took X dollars with him, and was quite sure that this would be enough to pay the bill. At the end, the waiter brought a bill of Y dollars. Print "YES" if Chef has enough money to pay the bill, or "NO" if he has to borrow from his girlfriend and leave a bad impression on her.

Input Format

The first line of input will contain a single integer T, denoting the number of test cases. Each test case consists of a single line of input, containing two space-separated integers X and Y.

Output Format

For each test case, output on a new line "YES" if Chef has enough money to pay the bill and "NO" otherwise. You may print each character of the string in either uppercase or lowercase (for example, the strings "yEs", "yes", "Yes" and "YES" will all be treated as identical).

Constraints

1<=T<=100 1<X,Y<=100

Sample 1:

Input Output

1  1             YES
1  2              NO
2  1              YES
50 100            NO

Explanation:

Test case 1 1: Since the money Chef has is equal to the bill, he will be able to pay the bill.

Test case 2 2: Since the money Chef has is less than the bill, he will have to borrow from his girlfriend and leave a bad impression on her.

Test case 3 3: Since the money Chef has is greater than the bill, he will be able to pay the bill.

Test case 4 4: Since the money Chef has is less than the bill, he will have to borrow from his girlfriend and leave a bad impression on her.

bill-codechef's People

Contributors

deepikaa2004 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.