我正在尝试使用Python解决以下场景。你知道吗
Two guys sindi and isra have collected the price and quality data for laptops they received. They want to know the cheapest laptop with best quality from this data.
现在您必须帮助irsa编写一个应用程序来实现这个逻辑。你知道吗
Input format is:
如果你能找到两台符合irsa规定条件的笔记本电脑?你知道吗
将输出打印为happy irsa
,否则打印poor irsa
(请注意,字母很小,所有字母都用小写字母书写。)
输入:
2
1 10
7 3
输出:
"Happy irsa"
输入:
4
1 5
7 9
5 6
20 30
输出: “可怜的irsa”
mylist = []
for i in range(count):
laptopPrice,laptopQuality = [int(x) for x in input().split()]
mylist.append(laptopPrice)
mylist.append(laptopQuality)
请帮我完成这个代码!你知道吗
我解决了:
相关问题 更多 >
编程相关推荐