Skip to content

Commit

Permalink
BOJ_14582
Browse files Browse the repository at this point in the history
  • Loading branch information
cye-dev committed Dec 18, 2022
1 parent 401603a commit c45ec02
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions 차영은/BOJ_14582.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import sys

W = list(map(int, sys.stdin.readline().split()))
S = list(map(int, sys.stdin.readline().split()))
W_sum = 0
S_sum = 0
flag = False

for i in range(9):
for _ in range(W[i]):
W_sum += 1

for _ in range(S[i]):
if W_sum > S_sum:
flag = True
break

S_sum += 1


print("Yes" if flag else "No")

0 comments on commit c45ec02

Please sign in to comment.