英语翻译Murder in closet happened again in a small restaurant an

英语翻译
Murder in closet happened again in a small restaurant and Conan went there to collect evidence with Kogoro.After they reached the restaurant,they got a list of renters that lived in this restaurant recently.Yet the list was so long that they couldn't get the useful information from it.As an assistant of Conan,you must have been ready to help him to get the information on which rooms the renters have lived in.
输入
There are no more than 20 test cases.The first line of each test case contains two integers n and m,indicating the number of renters and the rooms of the restaurant (0 < n,m
hnhnhnhh 1年前 已收到1个回答 举报

果情宝愿 幼苗

共回答了17个问题采纳率:82.4% 举报

程序包含不超过20组测试用例,每组用例第一行是两个数,分别表示租房子的人的数量和房间的数量,接下来n行的第i行两个数表示第i人入住和退宿的时间,房间号从1开始排,并且客人来时先从房间号小的房间开始排,如果排满后输出0,输入以0 0结束,程序输出就是每个来入住人的房间号.

1年前 追问

4

hnhnhnhh 举报

那个 1 3 2 4 4 2 1 5 2 3 3 5 4 5 这两个数分别表示什么~

举报 果情宝愿

程序包含不超过20组测试用例,每组用例第一行是两个数n,m,分别表示租房子的人的数量和房间的数量,接下来n行的第i行两个数表示第i人入住和退宿的时间
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.043 s. - webmaster@yulucn.com