Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【PAT Advanced Level 1026 Table Tennis】关于同一秒钟多个桌子空闲,分配多个客人的情况 #172

Open
Ceceliawai opened this issue Feb 16, 2024 · 0 comments

Comments

@Ceceliawai
Copy link

比如说输入以下数据

4
8:00:00 4 0
8:01:00 3 0
8:02:00 1 0
8:02:01 1 0
2 1
1

仓库中的代码输出如下:

08:00:00 08:00:00 0
08:01:00 08:01:00 0
08:02:00 08:04:00 2
08:02:01 08:04:01 2
2 2

但在08:04:00时刻两个桌子都已经空闲,所以最后两位客人的servetime应该都是08:04:00。即同一秒钟可能有多个桌子空闲的情况。

所以或许需要把空闲table的下标放到一个vector里面?不过测试点倒是都过了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant