problems

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 当读共享文件 ......

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

一个研究课题 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

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}$,对标签 $ ......

Unable to start the daemon process . This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used.

创建springboot项目的时候报这个错 是因为你选择了Gradle环境 但是你本地没有这个Gradle环境 选择maven环境就可以了 ......

转)关于逆问题(inverse problem)的阅读名单

【注1】虽然咱不看这方面的内容,但是既然莫名其妙地下了这么个东西,就想着不能扔了,至少留一份于***当中。 【注2】简单排版,但并未校正,无法保证质量。 【注3】与原文不同,这里按照Mx做了重排,排法类似于大名鼎鼎的冒泡排序,故而more不保证质量。 A Reading List in Invers ......
名单 inverse problem 问题

assembly of tiny problems I come across when using Ubuntu

1. flameshot couldn't work properly. after running, it doesn't act to enable selecting area as expected, but pop out a frame and I need to click 'shar ......
assembly problems across Ubuntu using

Paper Reading: XRRF — An eXplainable Reasonably Randomised Forest algorithm for classification and regression problems

本文提出了一种 XRRF 算法,它通过执行本文提出的 SGFL 和 RRF 算法来得到可解释性、准确性和可解释性之间的权衡。随后引入了基于决策路径特征提取的方法,根据具体的应用解释模型的输出。其中 SGFL 能确定有助于模型准确性的特征,同时保持特征关系的可靠性。RRF 算法则通过利用所提出的改进随... ......
共298篇  :10/10页 首页上一页10下一页尾页