AtCoder Beginner Contest 061 - Between Two Integers

You are given three integers A, B and C.
Determine whether C is not less than A and not greater than B.

-----Constraints-----
 - -100≤A,B,C≤100 
 - A, B and C are all integers.

-----Input-----
Input is given from Standard Input in the following format:  
A B C

-----Output-----
If the condition is satisfied, print Yes; otherwise, print No.

-----Sample Input-----
1 3 2

-----Sample Output-----
Yes

C=2 is not less than A=1 and not greater than B=3, and thus the output should be Yes.

Difficulty: EASY

Starter code:

Solutions:
(a, b, c) = [int(i) for i in input().split()]
print('Yes') if a <= c <= b else print('No')


(a, b, c) = map(int, input().split(' '))
print('Yes') if a <= c and c <= b else print('No')


(a, b, c) = [int(m) for m in input().split()]
print('Yes' if a <= c and b >= c else 'No')


(A, B, C) = map(int, input().split())
print('No' if C < A or B < C else 'Yes')


(a, b, c) = map(int, input().split())
print(' YNeos'[a <= c <= b::2])


a = [int(num) for num in input().split()]
print('Yes' if a[0] <= a[2] <= a[1] else 'No')


(A, B, C) = (int(x) for x in input().split())
if A <= C <= B:
	print('Yes')
else:
	print('No')


(A, B, C) = map(int, input().split())
print('YNeos'[not A <= C <= B::2])


def iroha():
	(a, b, c) = list(map(int, input().split()))
	if a <= c and b >= c:
		print('Yes')
	else:
		print('No')

def __starting_point():
	iroha()
__starting_point()


(a, b, c) = map(int, input().split())
print(('No', 'Yes')[a <= c <= b])


(A, B, C) = [int(i) for i in input().split()]
print('Yes' if A <= C and C <= B else 'No')


a = list(map(int, input().split()))
print('Yes' if a[0] <= a[2] <= a[1] else 'No')


(A, B, C) = map(int, input().split())
ans = 'No'
if A <= C <= B:
	ans = 'Yes'
print(ans)


import sys
(a, b, c) = list(map(int, input().split()))
print('Yes' if a <= c <= b else 'No')


(A, B, C) = map(int, input().split())
print(['No', 'Yes'][A <= C and B >= C])


(a, b, c) = map(int, input().split())
ans = 'No'
if a <= c <= b:
	ans = 'Yes'
print(ans)


(A, B, C) = map(int, input().split())
print('YNeos'[1 - (A <= C <= B)::2])


import sys

def I():
	return int(sys.stdin.readline())

def MI():
	return map(int, sys.stdin.readline().split())

def LI():
	return list(map(int, sys.stdin.readline().split()))

def main():
	(a, b, c) = MI()
	if a <= c and c <= b:
		print('Yes')
	else:
		print('No')

def __starting_point():
	main()
__starting_point()


(a, b, c) = map(int, input().split())
print('NYoe s'[a <= c <= b::2])


(A, B, C) = map(int, input().split())
if -100 <= A and B and (C <= 100):
	if C >= A and C <= B:
		print('Yes')
	else:
		print('No')


print((lambda a, b, c: a <= c <= b and 'Yes' or 'No')(*[int(_) for _ in input().split()]))


(A, B, C) = list(map(int, input().split()))
print(['No', 'Yes'][A <= C <= B])


i = list(map(int, input().split()))
if i[2] >= i[0] and i[1] >= i[2]:
	ans = 'Yes'
else:
	ans = 'No'
print(ans)


(a, b, c) = [int(i) for i in input().split()]
print(['No', 'Yes'][a <= c and c <= b])


(A, B, C) = (int(T) for T in input().split())
print(['No', 'Yes'][A <= C <= B])


print('YNeos'[not (lambda x, y, z: x <= z <= y)(*map(int, input().split()))::2])


(x, y, z) = map(int, input().split())
if x <= z <= y:
	print('Yes')
else:
	print('No')


(a, b, c) = map(int, input().split())
if c in range(a, b + 1):
	print('Yes')
else:
	print('No')


(A, B, C) = map(int, input().split(' '))
ans = 'Yes' if C - A >= 0 and C - B <= 0 else 'No'
print(ans)


import math
(a, b, c) = map(int, input().split())
print('Yes' if a <= c <= b else 'No')


(A, B, C) = map(int, input().split())
print(['Yes', 'No'][C < A or C > B])


(A, B, C) = map(int, input().split())
print('YNeos'[C < A or B < C::2])


import sys, math
from itertools import combinations as c, product as p
from collections import deque
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

def si():
	return input()

def ii():
	return int(input())

def fi():
	return float(input())

def lstr():
	return input().split()

def lint():
	return list(map(int, input().split()))

def lintdec():
	return list(map(lambda x: int(x) - 1, input().split()))

def lnstr(n):
	return [input() for _ in range(n)]

def lnint(n):
	return [int(input()) for _ in range(n)]

def lint_list(n):
	return [lint() for _ in range(n)]
(A, B, C) = lint()
print('Yes' if A <= C <= B else 'No')


import sys
from io import StringIO
import unittest

class TestClass(unittest.TestCase):

	def assertIO(self, input, output):
		(stdout, stdin) = (sys.stdout, sys.stdin)
		(sys.stdout, sys.stdin) = (StringIO(), StringIO(input))
		resolve()
		sys.stdout.seek(0)
		out = sys.stdout.read()[:-1]
		(sys.stdout, sys.stdin) = (stdout, stdin)
		self.assertEqual(out, output)

	def test_入力例_1(self):
		input = '1 3 2'
		output = 'Yes'
		self.assertIO(input, output)

	def test_入力例_2(self):
		input = '6 5 4'
		output = 'No'
		self.assertIO(input, output)

	def test_入力例_3(self):
		input = '2 2 2'
		output = 'Yes'
		self.assertIO(input, output)

def resolve():
	(A, B, C) = list(map(int, input().split()))
	if A <= C <= B:
		print('Yes')
	else:
		print('No')

def __starting_point():
	resolve()
__starting_point()


(a, b, c) = map(int, input().split())
print('YNeos'[not (a <= c and c <= b)::2])


(a, b, c) = list(map(int, input().split()))
resut = 'ret'
if a <= c and b >= c:
	result = 'Yes'
else:
	result = 'No'
print(result)


(A, B, C) = map(int, open(0).readline().split())
print('Yes' if A <= C <= B else 'No')


(A, B, C) = map(int, input().split())
print('Yes' if C in range(A, B + 1) else 'No')


S_list = list(map(int, input().split()))
if S_list[1] - S_list[0] >= 0 and S_list[2] - S_list[0] >= 0 and (S_list[1] - S_list[2] >= 0):
	result = 'Yes'
else:
	result = 'No'
print(result)


(A, B, C) = list(map(int, input().split()))
result = 'No'
if A <= C <= B:
	result = 'Yes'
print(result)


(A, B, C) = map(int, input().split())
if A <= C and C <= B:
	print('Yes')
	exit()
print('No')