# PROBLEM LINK:

Practice

Contest: Division 1

Contest: Division 2

Contest: Division 3

Contest: Division 4

* Author:* notsoloud

*yash_daga*

**Tester:***iceknight1093*

**Editorialist:**# DIFFICULTY:

468

# PREREQUISITES:

None

# PROBLEM:

Can X assignments, each requiring Y minutes, be completed within Z days?

# EXPLANATION:

We have X assignments that need Y minutes each.

In total, we’d need X\cdot Y *minutes* to finish them all.

In Z *days*, there are 24\cdot 60\cdot Z *minutes* (24 hours in a day, 60 minutes in an hour).

So, the answer is `Yes`

if X\cdot Y \leq 1440\cdot Z and `No`

otherwise.

# TIME COMPLEXITY

\mathcal{O}(1) per testcase.

# CODE

## Editorialist's code (Python)

```
for _ in range(int(input())):
x, y, z = map(int, input().split())
print('Yes' if x*y <= 24*60*z else 'No')
```