Too Much Homework!
Source: codechef
Difficulty: 190

Too Much Homework!
Chef just realized he has a ton of homework due tomorrow!
Chef has several worksheets of questions with him. Each worksheet has exactly$Y$questions in it.
Chef only has the time to complete
at most$10$worksheets before the submission deadline.
Chef has previously answered$X$questions, and he needs to answer at least$100$questions in total to get a full score for the homework.
Will Chef be able to get a full score?
Input Format
The only line of input will contain two space-separated integers$X$and$Y$— the number of questions already answered by Chef, and the number of questions in each worksheet.
Output Format
For each test case, output the answer:
"YES"
(without quotes) if Chef can receive a full score for the homework, and
"NO"
(without quotes) otherwise.
Each character of the output may be printed in either uppercase or lowercase, i.e. the strings
No
,
NO
,
nO
, and
no
will be treated as equivalent.
Constraints$0 \leq X \leq 150$$1 \leq Y \leq 10$Sample 1:
Explanation:
Chef has already completed$X = 73$questions.
Each worksheet has$4$questions. Chef can complete$7$of them for$4\cdot 7 = 28$questions, which when added to the initial$73$puts him at$101$which is more than$100$.
Sample 2:
Input
Output
0 10
Yes
Explanation:
Chef has already completed$X = 0$questions.
Each worksheet has$10$questions. Chef can complete$10$of them for$10\cdot 10 = 100$questions, which when added to the initial$0$puts him at$100$which is enough.
Sample 3:
Input
Output
47 5
No
Explanation:
Chef has already completed$X = 47$questions.
Each worksheet has$5$questions. Even if Chef completes$10$of them for$10\cdot 5 = 50$questions, he will have a total of$47 + 50 = 97$done which is not enough.

Sample Input:
73 4

Sample Output:
Yes

C++ solution:
#include <bits/stdc++.h>
using namespace std;

int main() {
    // your code goes here
int x,y;
cin>>x>>y;
if(x+(10*y)>=100){
    cout<<"YES";
}
else{
    cout<<"NO";
}
}

Go solution:
package main
import "fmt"

func main(){
    // your code goes here
    var done int
    var quesPerSheet int
    fmt.Scan(&done)
    fmt.Scan(&quesPerSheet)
    if done + (10 * quesPerSheet) >=100 {
        fmt.Println("Yes")
    } else {
        fmt.Println("No")
    }
}

Java solution:
import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int sum=10*b;
        if(sum+a>=100){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
}

JavaScript solution:
// your code goes here
const readline = require("readline");

const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});
//step 1

rl.question("", (input) => {
let values=input.split(" ")
  let x=Number(values[0]);
  let y=Number(values[1]);
  
  if(x+(y*10)>=100){
      console.log("Yes")
  }else{
      console.log("No")
  }
  
    rl.close();
});

Python solution:
X, Y = map(int, input().split())
max_additional = 10 * Y
if X + max_additional >= 100:
    print("YES")
else:
    print("NO")

Ruby solution:
x, y = gets.split.map(&:to_i)
puts (x + 10 * y) >= 100 ? "YES" : "NO"