小白求加米啊啊啊啊!加米不扣米啊各位!!!
一投就拿到的Optiver白嫖OA,今年的OA Coding部分只有一题,是个OOD,感觉我的代码写的明明没什么问题结果第二个test case就是死活不通过............ 醉了,不过白嫖的OA也无所谓了
Satellite Message Propagation System
A satellite network is experimenting with a distributed communication protocol based on satellite connections.
During system tests, the team wants to ensure that messages they send are processed in the correct order.
The protocol works like so:- A message is sent from Earth directly to one or more satellites.
- Every satellite tha>.
- If two satellites report back to Earth at the same time, the one with the smaller SatelliteId is considered to arrive first.
Function Description
You must implement the following functions in the SatelliteNetwork class:- SatelliteConnected(SatelliteId)
- RelationshipEstablished(SatelliteId1, SatelliteId2)
- MessageReceived(M, SatelliteId_1, ..., SatelliteId_M)
|