In Range Check
Python
Easy
2 views
Problem Description
Read three integers x L R. Output YES if L
Input Format
One line: x L R.
Official Solution
import sys
p=sys.stdin.read().strip().split()
if len(p)<3: sys.exit(0)
x=int(p[0]); L=int(p[1]); R=int(p[2])
sys.stdout.write('YES' if L<=x<=R else 'NO')
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!