首页 > TAG信息列表 > infected

Codeforces 1689C. Infected Tree

传送门 \(\texttt{Difficulty:1900}\) 题目大意 \(n\cdot m(1\le n,m\le1000)\) 的矩阵 \(A\) ,\(A_ij\) 为 W 或者 B 。设一个点到所有 B 点的曼哈顿距离的最大值为 \(x\) ,求 \(x\) 最小的点 \((i,j)\) 。 思路 考虑只有最右下,左上,左下,右上这 \(4\) 个黑点会起作用,其他的黑点一定

Infected Tree

题目: Byteland is a beautiful land known because of its beautiful trees. Misha has found a binary tree with nn vertices, numbered from 11 to nn. A binary tree is an acyclic connected bidirectional graph containing nn vertices and n−1n−1 edges. Each

R软件SIR模型网络结构扩散过程模拟

原文链接:http://tecdat.cn/?p=14593  与普通的扩散研究不同,网络扩散开始考虑网络结构对于扩散过程的影响。 这里介绍一个使用R模拟网络扩散的例子。 基本的算法非常简单: 生成一个网络:g(V, E)。 随机选择一个或几个节点作为种子(seeds)。 每个感染者以概率p(可视作该节点的传染能力,

R软件SIR模型网络结构扩散过程模拟

与普通的扩散研究不同,网络扩散开始考虑网络结构对于扩散过程的影响。 这里介绍一个使用R模拟网络扩散的例子。基本的算法非常简单: 生成一个网络:g(V, E)。 随机选择一个或几个节点作为种子(seeds)。 每个感染者以概率p(可视作该节点的传染能力,通常表示为ββ)影响与其相连的节点。 其

Codeforces Round #671 (Div. 2) C. Killjoy

outputstandard output A new agent called Killjoy invented a virus COVID-2069 that infects accounts on Codeforces. Each account has a rating, described by an integer (it can possibly be negative or very large). Killjoy’s account is already infected and h

Codeforces Round #671 (Div. 2) C. Killjoy

题目原文 A new agent called Killjoy invented a virus COVID-2069 that infects accounts on Codeforces. Each account has a rating, described by an integer (it can possibly be negative or very large). Killjoy's account is already infected and has a rating eq

R软件SIR模型网络结构扩散过程模拟

原文链接:http://tecdat.cn/?p=14593  与普通的扩散研究不同,网络扩散开始考虑网络结构对于扩散过程的影响。 这里介绍一个使用R模拟网络扩散的例子。 基本的算法非常简单: 生成一个网络:g(V, E)。 随机选择一个或几个节点作为种子(seeds)。 每个感染者以概率p(可视作该节点的传染能力