AtCoder Beginner Contest 091 - Two Coins

An elementary school student Takahashi has come to a variety store.
He has two coins, A-yen and B-yen coins (yen is the currency of Japan), and wants to buy a toy that costs C yen. Can he buy it?
Note that he lives in Takahashi Kingdom, and may have coins that do not exist in Japan.

-----Constraints-----
 - All input values are integers.
 - 1 \leq A, B \leq 500
 - 1 \leq C \leq 1000

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

-----Output-----
If Takahashi can buy the toy, print Yes; if he cannot, print No.

-----Sample Input-----
50 100 120

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

He has 50 + 100 = 150 yen, so he can buy the 120-yen toy.

Difficulty: EASY

Starter code:

Solutions:
(a, b, c) = map(int, input().split())
print('Yes' if a + b - c >= 0 else 'No')


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


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


(A, B, C) = [int(x) for x in input().split()]
print('Yes' if A + B >= C else 'No')


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


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


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


(a, b, p) = map(int, input().split())
ans = 'Yes' if a + b >= p else 'No'
print(ans)


(a, b, x) = map(int, input().split())
if x > a + b:
	print('No')
else:
	print('Yes')


(m, n, l) = map(int, input().split())
print('Yes' if m + n >= l else 'No')


import bisect, collections, copy, heapq, itertools, math, string, sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(10 ** 7)
INF = float('inf')

def I():
	return int(input())

def F():
	return float(input())

def SS():
	return input()

def LI():
	return [int(x) for x in input().split()]

def LI_():
	return [int(x) - 1 for x in input().split()]

def LF():
	return [float(x) for x in input().split()]

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

def resolve():
	(A, B, C) = LI()
	if A + B >= C:
		print('Yes')
	else:
		print('No')

def __starting_point():
	resolve()
__starting_point()


from sys import stdin
nii = lambda : map(int, stdin.readline().split())
lnii = lambda : list(map(int, stdin.readline().split()))
(a, b, c) = nii()
print('Yes' if a + b >= c else 'No')


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


print(['No', 'Yes'][eval(input().replace(' ', '+', 1).replace(' ', '>='))])


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


(a_coin, b_coin, price) = map(int, input().split())
if a_coin + b_coin >= price:
	print('Yes')
else:
	print('No')


i = list(map(int, input().split()))
print(['No', 'Yes'][i[0] + i[1] >= i[2]])


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


def main():
	(A, B, C) = list(map(int, input().split()))
	print('Yes' if A + B - C >= 0 else 'No')

def __starting_point():
	main()
__starting_point()


(n, m, c) = [int(x) for x in input().split()]
if n + m >= c:
	print('Yes')
else:
	print('No')


l = [int(i) for i in input().split()]
print('Yes' if l[0] + l[1] >= l[2] else 'No')


print('Yes' if eval(input().replace(' ', '+', 1).replace(' ', '>=')) else 'No')


(A, B, C) = [int(x) for x in input().split()]
print('YNeos'[A + B < C::2])


(a, b, n) = map(int, input().split())
if a + b >= n:
	print('Yes')
else:
	print('No')


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


def resolve():
	(a, b, c) = map(int, input().split())
	if c <= a + b:
		print('Yes')
	else:
		print('No')
resolve()


C = list(map(int, open(0).read().split()))
print('Yes' if C[0] + C[1] >= C[2] else 'No')


(a, b, x) = map(int, input().split())
print(['No', 'Yes'][a + b >= x])


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


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


(a, b, c) = input().split()
a = int(a)
b = int(b)
c = int(c)
if a + b >= c:
	print('Yes')
else:
	print('No')


(a, s, d) = map(int, input().split())
print('Yes' if a + s >= d else 'No')


(a, b, c) = map(int, input().split())
if a + b >= c:
	print('Yes', flush=True)
else:
	print('No', flush=True)


def mapt(fn, *args):
	return tuple(map(fn, *args))

def Input():
	return mapt(int, input().split(' '))

def main():
	(a, b, c) = Input()
	if a + b >= c:
		print('Yes')
	else:
		print('No')
main()


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


(a, b, c) = map(int, open(0).read().split())
print('Yes' if a + b >= c else 'No')


print(['No', 'Yes'][[a + b >= c for (a, b, c) in zip(*[map(int, input().split())] * 3)][0]])


def LI():
	return list(map(int, input().split()))
(A, B, C) = LI()
if A + B >= C:
	ans = 'Yes'
else:
	ans = 'No'
print(ans)


(*a, b) = map(int, input().split())
print('NYoe s'[sum(a) >= b::2])


(m, n, y) = map(int, input().split())
if y <= m + n:
	print('Yes')
else:
	print('No')


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


(b, c, d) = map(int, input().split())
if b + c < d:
	print('No')
else:
	print('Yes')


a = input().split()
a = [int(i) for i in a]
if sum(a[:2]) >= a[2]:
	print('Yes')
else:
	print('No')


l = list(map(int, input().split()))
print(['No', 'Yes'][l[0] + l[1] >= l[2]])


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


(x, y, z) = map(int, input().split())
if x + y >= z:
	print('Yes')
else:
	print('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 = '50 100 120'
		output = 'Yes'
		self.assertIO(input, output)

	def test_入力例_2(self):
		input = '500 100 1000'
		output = 'No'
		self.assertIO(input, output)

	def test_入力例_3(self):
		input = '19 123 143'
		output = 'No'
		self.assertIO(input, output)

	def test_入力例_4(self):
		input = '19 123 142'
		output = 'Yes'
		self.assertIO(input, output)

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

def __starting_point():
	resolve()
__starting_point()


(A, B, X) = map(int, input().split())
if A + B >= X:
	print('Yes')
else:
	print('No')