ACM训练2064: [STL训练]2010辽宁省决赛 SPY题解 (thenationalintelligencecouncilofxnation)

北笙凉宸 算法基础篇 48 0
想要检验自己的编程水平?来试试全网最全C++题库,让您在挑战中不断进步。
The National Intelligence Council of X Nation receives a piece ofcredible information that Nation Y will send spies to steal NationX’s confidential paper. So the commander of The National

The National Intelligence Council of X Nation receives a piece of credible information that Nation Y will send spies to steal Nation X’s confidential paper. So the commander of The National  Intelligence Council take measures immediately, he will investigate people who will come into NationX. At the same time, there are two  List in the Commander’s hand, one is full of spies that Nation Y  will send to Nation X, and the other one is full of spies that Nation  X has sent to Nation Y before. There may be some overlaps of the two list. Because the spy may act two roles at the same time, which means that he may be the one that is sent from Nation X to Nation Y, we just call this type a “dual-spy”. So Nation Y may send “dual_spy” back to Nation X, and it is obvious now that it is good for Nation X, because “dual_spy” may bring back NationY’s confidential paper without worrying to be detention by NationY’s frontier. So the commander decides to seize those that are sent by NationY, and   let the ordinary people and the “dual_spy” in at the same time .So can you decide a list that should be caught by the Commander? A:the list contains that will come to the NationX’s frontier. B:the list contains spies that will be sent by Nation Y. C:the list contains spies that were sent to NationY before.

ACM训练2064: [STL训练]2010辽宁省决赛 SPY题解
(thenationalintelligencecouncilofxnation)-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
不断学习,不断挑战,才能在编程领域中脱颖而出!全网最全C++题库,助您成为编程高手!

标签: ACM训练2064: [STL训练]2010辽宁省决赛 SPY题解