Editorial for Cuộc họp
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
Gọi là tập các thông tin mà người thứ
biết được. Với mỗi cuộc họp, ta giải quyết trong từng trường hợp sau:
- Cuộc họp
có người đưa tin tham gia: Ta đơn giản bổ sung giá trị
vào các tập
nếu người
có tham gia cuộc họp.
- Cuộc họp
không có người đưa tin tham gia: Ta cần xác định
là hợp của các tập
với người thứ
có tham gia cuộc họp. Việc xây dựng tập
có thể thực hiện trong
. Sau đó, với mỗi người thứ
có tham gia cuộc họp, ta cập nhật
.
Độ phức tạp:
Comments