partiton another problem 1175g

Problem H: 超时计时器设置

Problem Description 运输层的超时计时器的超时重传时间应设置为多大呢? 如果把超时重传时间设置得太短,就会引起很多报文段的不必要的重传,使网络负荷增大。但若把超时重传时间设置得过长,则又使网络的空闲时间增大,降低了传输效率。 TCP 采用了一种自适应算法,它记录一个报文段发出的时间 ......
计时器 Problem

Problem G: 距离向量算法(D-V)

Problem Description RIP路由协议是一种分布式的基于距离向量的路由选择协议。距离向量(D-V)算法:收到相邻路由器(设其地址为 X)的一个 RIP 报文: ① 先修改此 RIP 报文中的所有项目:把“下一跳”字段中的地址都改为 X,并把所有的“距离”字段的值加 1。 ② 对修改后 ......
向量 算法 Problem D-V

Problem J: base64解码

Problem Description 对于任意二进制文件(如图像、声音、视频、程序等),都可以用base64编码。base64编码方法:先把二进制代码划分为一系列24位长的单元,然后把每一个24位单元划分为4个6位的组。每一个6位组按下列方法转换为ASCII码。6位二进制有64个不同的值,0-63 ......
Problem base 64

Problem I: base64编码

Problem Description 对于任意二进制文件(如图像、声音、视频、程序等),都可以用base64编码。base64编码方法:先把二进制代码划分为一系列24位长的单元,然后把每一个24位单元划分为4个6位的组。每一个6位组按下列方法转换为ASCII码。6位二进制有64个不同的值,0-63 ......
编码 Problem base 64

Problem F: 计算地址掩码和地址数

1 def INTO(list): 2 sum = 0; 3 length = len(list) 4 for i in range(length): 5 sum+=list[i]*pow(2,i) 6 return sum 7 #计算地址掩码 8 def caculate(a): 9 x = in ......
地址 Problem

Problem C: 以太网交换机转发数据帧

1 def MacAdress(m): 2 ad = [] 3 while m>0: 4 m-=1 5 #将一行mac地址拆分进数组a中 6 a = input().split(" ",3) 7 ad.append(a) 8 return ad 9 10 def Frame(n): 11 frame ......
以太网 交换机 Problem 数据

Problem B: 以太网交换机的自学习算法

1 def func(): 2 lines = [] 3 while True: 4 try: 5 #x作为中间量更新交换表的端口号 6 x = input() 7 if x ==' ': 8 break 9 x = x.split(' ', 3) 10 11 flag = 0 12 # 利用enu ......
以太网 交换机 算法 Problem

Problem E: 计算网络地址

1 def calculate(m,n): 2 ans = [] 3 a = m.split('.',3) 4 b = n.split('.', 3) 5 ip = list(map(int,a)) 6 mask = list(map(int, b)) 7 for i in range(4): 8 ......
Problem 地址 网络

Problem D: IP地址合法性和网络类别检查

1 def Islegal(a): 2 ip = list(map(int,a)) 3 flag = 0 #标志是否合法 4 if 0<=ip[0]<=255: 5 if 0<=ip[1]<=255: 6 if 0 <= ip[2] <= 255: 7 if 0 <= ip[3] <= 255: 8 ......
合法性 类别 Problem 地址 网络

AtCoder Problem Difficulty

ABC299 之前 . ......
Difficulty AtCoder Problem

AtCoder Regular Contest 111 F Do you like query problems?

洛谷传送门 AtCoder 传送门 挺有意思的计数。 计数感觉很难做,不妨转成期望,期望又可以转成概率之和。 考虑枚举 $w \in [0,m-1]$,把 $> w$ 的数设为 $1$,$\le w$ 的数设为 $0$。那么期望就是所有 $w$,$a_i$ 为 $1$ 的概率之和。对于一个 $i$, ......
problems AtCoder Regular Contest query

org.pentaho.di.core.exception.KettleXMLException: Unexpected problem reading shared objects from XM

【kettle】【报错】 Unexpected problem reading shared objects from XML file 当读共享文件时发生错误 Unexpected problem reading shared objects from XML file : null 当读共享文件 ......

time_t now=time(NULL); std::cout<<ctime(&another_time);tm* ltm = localtime(&now);

#include <iostream> #include <iomanip> #include <ctime> #include<windows.h> int main() { time_t now = time(NULL); tm* ltm = localtime(&now); std::cout ......
time another_time now amp localtime

安装anaconda遇到问题:Error: Due to incompatibility with several Python libraries, 'Destination Folder' cannot contain non-ascii characters (special characters or diacritics). Please choose another location.

-今天安装anaconda遇到一个问题:Error: Due to incompatibility with several Python libraries, 'Destination Folder' cannot contain non-ascii characters (special cha ......

The 1st Universal Cup Stage 12: ̄Ookayama, April 15-16, 2023 Problem A. XOR Tree Path

题意 给定一颗树,对于每个节点有一个颜色(白色或者黑色),对于一个操作:选择一个叶子节点,对于从叶子节点到根节点路径上的所有颜色反转(黑变白,白变黑)。让你求出使用任意次操作后,整个树上黑色节点最多有多少个。 思路对于每个节点在最终状态有两种结果,一个是不变,一个是反转颜色。如果颜色反转,则在这个节 ......
Universal Ookayama Problem April Stage

Topcoder 10880 - Rabbit Problemming

$$兔子,兔子,兔子$$ 首先,我们考虑一只兔子可以达到的最大值 $mx_i$ 和最小值 $mn_i$,这个可以很方便的求出来。并且每只兔子的取值是独立的。 然后,如果一个组合能被选中,那么在这个组合内部所有的兔子都取 $mx_i$,其他的兔子都取 $mn_i$ 的时候一定也能被选中。我们就钦定所有 ......
Problemming Topcoder Rabbit 10880

C - Cards Query Problem

C - Cards Query Problem https://atcoder.jp/contests/abc298/tasks/abc298_c 思路 在card入box的过程中, 需要两重统计: 记录box接纳card, 记录此card被box接纳。 Code https://atcoder.j ......
Problem Cards Query

Another Crisis UVA - 12186

#include <iostream> #include <cstring> #include <vector> #include <algorithm> using namespace std; const int N=1e5+3; int f[N],n,K; vector<int> g[N]; ......
Another Crisis 12186 UVA

一个研究课题 A Research Problem UVA10837

输入正整数m(m≤1e8),求最小的正整数n,使得φ(n)=m。n<=2e8。 #include<cstring> #include<algorithm> #include<iostream> #include <map> using namespace std; const int M=1e5+5 ......
研究课题 课题 Research Problem 10837

Can not construct instance of com.hm.drgs.platform.common.dto.data.group.DrgsRecordGroupResultDto, problem: Should never call 'set' on setterless property

报错全部信息: JSON parse error: Can not construct instance of com.hm.drgs.platform.common.dto.data.group.DrgsRecordGroupResultDto, problem: Should never cal ......

解决前端启动报错:This is probably not a problem with npm. There is likely additional logging output above.

在执行 npm run dev 运行项目的时候报错: {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! phan ......
前端 additional probably logging problem

COMP20007 Task 2: C Problem

Task 2: C ProblemAssignment 1GeneralTask 1: AlgorithmicDesignTask 2: C ProblemAssignment SubmissionAcademic HonestyLate PolicyRequirements: CProgrammi ......
Problem 20007 COMP Task

angular项目启动报Another process, with id 24289, is currently running ngcc.

在npm build时突然停下来,再启动就启不起来了。 看报错信息是端口被占用,在任务管理器中也找不到这个端口 重启vscode、重启电脑都不好使。。 可以通过删除node_modules再重新npm install解决! ......
currently angular Another process running

UCUP-ZJ M. Minimum Element Problem

题意 给定一个位置x,求在$p_x$分别取1-n的所有情况下,对应笛卡尔树不同的排列个数。 题解 先不考虑$p_x$,列出转移式,发现是卡特兰数。 进一步地,可以把排列对应笛卡尔树意义下的不同构数,和二叉树不同构数等价联系起来:因为对于任何一个二叉树,按照中序遍历在上面填1-n,就可以唯一确定一个排 ......
UCUP-ZJ Minimum Element Problem UCUP

What is X/Y problem?

X/Y problem means you have a problem X, you think you should solve another problem Y to solve the original problem X, you ask people for help you solv ......
problem What is

Perceptron, Support Vector Machine and Dual Optimization Problem (3)

Support Vector Machines Perceptron and Linear Separability 假设存在一个 linear decision boundary,它可以完美地对 training dataset 进行分割。 那么,经由上述 Perceptron Algorithm ......

P1865 A % B Problem

P1865 A % B Problem 题目链接 题意简述 求区间 $[l,r]$ 内质数的个数 解析 前置知识: 素数判断 / 素数筛法 前缀和 质数是指在大于 $1$ 的自然数中,除了 $1$ 和它本身以外不再有其他因子的自然数。 一层循环判断 $2\sim n-1$ 的每一个数是否是它的因子 ......
Problem P1865 1865

Problem Y: Understanding Used Sailboat Prices

Like many luxury goods, sailboats vary in value as they age and as market conditions change. The attached “2023_MCM_Problem_Y_Boats.xlsx” file include ......
Understanding Sailboat Problem Prices Used

Problem Z: The Future of the Olympics

Background The International Olympic Committee (IOC) is facing a decreasing number of bids to host the Olympics – both Summer and Winter Games[1]. In ......
Olympics Problem Future The the

Perceptron, Support Vector Machine and Dual Optimization Problem (1)

Linear Decision Boundary(线性决策边界) Example. (classification problem) 给定一个二元的特征空间 $\mathcal{X} = \left{ \text{weight} \times \text{height} \right}$,对标签 $ ......
共350篇  :11/12页 首页上一页11下一页尾页