solutions: 456A
This commit is contained in:
parent
c338ac88e5
commit
bb90dfe5b7
1 changed files with 15 additions and 0 deletions
15
solutions/python/456A.py
Normal file
15
solutions/python/456A.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import sys
|
||||||
|
|
||||||
|
n = int(input())
|
||||||
|
|
||||||
|
laptops = []
|
||||||
|
|
||||||
|
for _ in range(n):
|
||||||
|
laptops.append([int(d) for d in input().split(' ')])
|
||||||
|
|
||||||
|
laptops = sorted(laptops, key=lambda x: x[0])
|
||||||
|
|
||||||
|
if any(laptops[i][1] > laptops[i+1][1] for i in range(n-1)):
|
||||||
|
print('Happy Alex')
|
||||||
|
else:
|
||||||
|
print('Poor Alex')
|
Loading…
Reference in a new issue