# PROBLEM LINK:

Contest Division 1

Contest Division 2

Contest Division 3

Contest Division 4

**Setter:** soumyadeep_21

**Testers:** gamegame

**Editorialist:** hrishik85

# DIFFICULTY:

317

# PREREQUISITES:

None

# PROBLEM:

Chef’s computer has N GB of free space. He wants to save X files of size 1 GB and Y files of size 2 GB each. Will he be able to save all these files?

# EXPLANATION:

Please note here that we just need to publish ‘Yes’ or ‘No’ - depending on whether the Chef can save X + Y files on his computer.

The total size required for saving the X + Y files is Size_required = (X * 1 + Y * 2)

The total size available is N GB of space.

If N >= (X * 1 + Y * 2), then Chef will be able to save the files on his computer

# TIME COMPLEXITY:

Time complexity is O(1).

# SOLUTION:

## Editorialist's Solution

```
t=int(input())
for _ in range(t):
n,x,y = map(int,input().split())
if (n>= x + 2*y):
print('YES')
else:
print('NO')
```