-->
当前位置:首页 > 题库

PROGRAMMING:Xiaohong buys vegetables

Luz5年前 (2021-05-10)题库463
On a warm afternoon, Xiao Pang just finished his blood donation. Xiao Hong, Xiao Pang's girlfriend, loves him very much and decides to go to the vegetable market at night to buy some vegetables for Wu xiaopang.
When Xiao Hong enters the market, she finds that she only brings n yuan. There are m kinds of vegetables in the market, but she hopes to buy the most expensive one to supplement Xiao Pang.
###Input format:
Enter an N, m (n, m < = 1000) in the first line, and enter the price of M vegetables in the second line;
###Output format:
Xiao Hong can buy the most vegetables; If you can't buy or have no money to buy or have no vegetables, you can output "xiaohonggg";
###Input example:
Here is a set of inputs. For example:
```in
41 7
334 500 169 724 478 358 962
464 5
145 281 827 961 491
```
###Output example:
The corresponding output is given here. For example:
```out
xiaohongGG
two hundred and eighty-one
```







answer:If there is no answer, please comment