先贴个整数快速幂 #include<bits/stdc++.h> using namespace std; typedef long long int ll; ll b,p,k,ans=1,res; int main(){ scanf("%lld%lld%lld",&b,&p,&k); cout<< ...
分类:
其他好文 时间:
2020-05-24 00:46:48
阅读次数:
56
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:
其他好文 时间:
2020-05-23 20:25:55
阅读次数:
59
有一个 $n\times m$ 的矩阵 $a(1\le a_{i,j}\le p)$,求从起点 $(1,1)$ 出发依次遍历值为 $1\to p$ 的矩阵单元的最短路径曼哈顿距离。保证满足 $a_{i,j}=p$ 的 $(i,j)$ 唯一。
数据范围:$1\le n,m\le 300$,$1\le ... ...
分类:
其他好文 时间:
2020-05-23 20:23:36
阅读次数:
94
int MatrixDP(int p[][2],int len ){ //p[i][0]、p[i][1]分别表示p[i]矩阵的行数、列数 int dp[100][100]={0}; for(int range=2;range<=len;++range){ int _begin=0,_end=rang ...
分类:
编程语言 时间:
2020-05-23 18:35:32
阅读次数:
52
#include <stdio.h>int main(){ int max,i,j,row,colum; int a[3][4]={{1,2,3,4},{9,8,7,6},{-10,10,-5,2}}; max=a[0][0]; for(i=0;i<=2;i++) { for(j=0;j<=3;j+ ...
分类:
其他好文 时间:
2020-05-23 18:13:34
阅读次数:
370
官方文档:InnoDB Locking and Transaction Model 一、InnoDB存储引擎中的锁 1.共享锁和排它锁(Shared and Exclusive Locks)--行级别锁 InnoDB存储引擎实现了两种标准的行级锁: 共享锁(S):允许持有该锁的事务读取一行记录。 排 ...
分类:
数据库 时间:
2020-05-23 16:24:29
阅读次数:
81
/* * CF1350E * 题意: * 给出一个n*m的01矩阵,q组询问,称一个方格(i,j)是好的,当且仅当至少有一个 * 与(i,j)相邻的方格颜色与(i,j)相同,经过一个回合后,好方格的颜色改变而不好的方格颜色不变。 * 每组询问给出i,j,p,问p回合后方格(i,j)的颜色是什么。 * ...
分类:
其他好文 时间:
2020-05-23 16:24:14
阅读次数:
41
Attendee= 参会者 Attendee A:我现在只是属于试用阶段,还没有经过一个比较完整的使用场景的考验,所以现在主要就是说想学习一下,看看别人都是应用到什么样的场景。我们现在实际用的就是一个句子相似性的应用场景,只做了一个很小的测试,没有遇到很明显的问题。之前觉得检索的准确率不是很高,但是 ...
分类:
其他好文 时间:
2020-05-23 13:32:04
阅读次数:
54
题意: 给定一个 $n?m$ 的格子矩阵,其中有一个格子是起点,一个格子是终点。从起点开始移动,每次能移动到有相邻边的格子中,每个格子都有一个权值 $v$,若从点 $(x,y)$ 移动到点 $(i,j)$,且$(i,j)$ 点未被访问过,则可以获得 $V_{(x,y)} V_{(i,j)}$ 的收益 ...
分类:
其他好文 时间:
2020-05-23 13:06:22
阅读次数:
58
hom_mat2d_identity (HomMat2DIdentity) //生成一个同质2D转换矩阵。 平移仿射 hom_mat2d_translate (HomMat2DIdentity, 100, 100, HomMat2DTranslate) //矩阵平移变换,形成新的矩阵HomMat2D ...
分类:
其他好文 时间:
2020-05-23 12:55:08
阅读次数:
54