시간 제한 | 메모리 제한 | 제출 | 정답 | 맞은 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 10 | 10 | 8 | 100.000% |
As a waiter, your favourite question from an indecisive punter is "I'm not sure, what would you recommend?" --- so much so, in fact, that you decided to automate away the answer to avoid having to spend any brain cycles on this question ever again.
You have the list of all set menus for today and you are going to simply pick one at random. As long as your recommendation corresponds to a list of items on a set menu, everything will be fine.
Each dish is described using at most $20$ lowercase Latin characters.
Output one line containing $m$, the number of dishes that you recommend, followed by $m$ lines containing the dishes you recommend.
If there are multiple possible solutions, you may output any one of them.
3 2 bigburger fries 2 pizza garlicbread 2 macaroni cheese
2 garlicbread pizza
4 2 pasta pizza 3 icecream sweets pasta 1 megapizza 2 icecream pizza
3 pasta icecream sweets
ICPC > Regionals > Europe > Northwestern European Regional Contest > The UK & Ireland Programming Contest > UKIEPC 2020 H번
ICPC > Regionals > Europe > Northwestern European Regional Contest > Benelux Algorithm Programming Contest > BAPC 2020 H번