Uva11825 - Hackers' Crackdown

在一个包含N个节点和每个节点运行相同N个服务的分布式计算机系统中,一名黑客收集了针对这些服务的所有必要攻击手段,并利用单一的安全漏洞发起攻击。攻击手段能够在原始节点及其邻居节点上成功感染并破坏服务。本问题探讨如何计算黑客最多能破坏多少服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Miracle Corporations has a number of system services running in a distributed computer system which
is a prime target for hackers. The system is basically a set of N computer nodes with each of them
running a set of N services. Note that, the set of services running on every node is same everywhere
in the network. A hacker can destroy a service by running a specialized exploit for that service in all
the nodes.
One day, a smart hacker collects necessary exploits for all these N services and launches an attack
on the system. He nds a security hole that gives him just enough time to run a single exploit in each
computer. These exploits have the characteristic that, its successfully infects the computer where it
was originally run and all the neighbor computers of that node.
Given a network description, nd the maximum number of services that the hacker can damage.
Input
There will be multiple test cases in the input le. A test case begins with an integer N (1 N 16),
the number of nodes in the network. The nodes are denoted by 0 to N

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值