Goomba Stacks
This commit is contained in:
9
goombastacks.py
Normal file
9
goombastacks.py
Normal file
@@ -0,0 +1,9 @@
|
||||
n = int(input())
|
||||
g_total = 0
|
||||
for _ in range(n):
|
||||
g, b = map(int, input().split())
|
||||
g_total += g
|
||||
if b > g_total:
|
||||
print("impossible")
|
||||
exit()
|
||||
print("possible")
|
||||
Reference in New Issue
Block a user