304 North Cardinal St.
Dorchester Center, MA 02124

# Janmansh and Assignments CodeChef Solution

## Problem

Janmansh has to submit 33 assignments for Chingari before 1010 pm and he starts to do the assignments at XX pm. Each assignment takes him 11 hour to complete. Can you tell whether he’ll be able to complete all assignments on time or not?

### Input Format

• The first line will contain TT – the number of test cases. Then the test cases follow.
• The first and only line of each test case contains one integer XX – the time when Janmansh starts doing the assignemnts.

### Output Format

For each test case, output `Yes` if he can complete the assignments on time. Otherwise, output `No`.

You may print each character of `Yes` and `No` in uppercase or lowercase (for example, `yes``yEs``YES` will be considered identical).

### Constraints

• 1 \le T \le 101≤T≤10
• 1 \le X \le 91≤X≤9

### Sample 1:

``````Input: 2
7
9
Output: Yes
No``````

### Explanation:

Test case-1: He can start at 77pm and finish by 1010 pm. Therefore he can complete the assignments.

Test case-2: He can not complete all the 33 assignments if he starts at 99 pm.

## Janmansh and Assignments CodeChef Solution in Java

``````/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
while (t-- > 0) {
System.out.println(10 - x >= 3 ? "Yes" : "No");
}
}
}
``````

## Janmansh and Assignments CodeChef Solution in Pyth 3

``````# cook your dish here
t=int(input())
for i in range(t):
x=int(input())
if x+3<=10:
print("yes")
else:
print("no")

``````

## Janmansh and Assignments CodeChef Solution in C++17

``````#include <iostream>
using namespace std;

int main() {
int t;
cin>> t;
while(t--){
int x;
cin>>x;
if(10-x>=3){
cout<<"Yes";
}
else{
cout<<"No";
}
cout<<endl;
}
return 0;
}
``````
##### Janmansh and Assignments CodeChef Solution Review:

In our experience, we suggest you solve this Janmansh and Assignments CodeChef Solution and gain some new skills from Professionals completely free and we assure you will be worth it.

If you are stuck anywhere between any coding problem, just visit Queslers to get the Janmansh and Assignments CodeChef Solution

Find on CodeChef

##### Conclusion:

I hope this Janmansh and Assignments CodeChef Solution would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.

This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.

Keep Learning!

More Coding Solutions >>

LeetCode Solutions

Hacker Rank Solutions

CodeChef Solutions