码迷,mamicode.com
首页 >  
搜索关键字:xor sum    ( 22663个结果
leetcode 1283. Find the Smallest Divisor Given a Threshold
Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result ...
分类:其他好文   时间:2020-11-13 13:21:44    阅读次数:33
【leetcode】二进制矩阵中的特殊位置
int numSpecial(int** mat, int matSize, int* matColSize){ int i,j,k,n,sum=0; int rows[100]={0}; int cols[100]={0}; for(i=0; i<matSize; i++) { for(j=0; ...
分类:其他好文   时间:2020-11-13 13:09:28    阅读次数:9
2020.10.30--vj个人赛补题
D - D CodeForces - 743A Vladik is a competitive programmer. This year he is going to win the International Olympiad in Informatics. But it is not as e ...
分类:其他好文   时间:2020-11-13 13:07:43    阅读次数:10
trick - 数学技巧
拆幂 \(x^n=x+\sum\limits_{i=1}^{n-1} (x-1)x^i\) 可以在递推式或者代数变形的时候用到这个式子,尤其是可以和二项式定理结合起来 例: noi.ac#286 集合 题解: 本地pdf,不知道咋上传qaq ...
分类:其他好文   时间:2020-11-12 14:16:25    阅读次数:6
MySQL查看数据库表容量大小
1.查看所有数据库容量大小 select table_schema as 'smartxs' ,sum(table_rows) as '记录数' ,sum(truncate(data_length/1024/1024, 2)) as '数据容量(MB)' ,sum(truncate(index_le ...
分类:数据库   时间:2020-11-12 13:50:57    阅读次数:57
appium 移动端 自动化测试
使用appnium 操作如下(保证adb在连接真机或者模拟器的情况下) 如图所下 如图所下 desired_caps常用参数: platformName 平台的名称:iOS, Android, or FirefoxOS platformVersion 设备系统版本号 deviceName 设备号 I ...
分类:移动开发   时间:2020-11-11 16:47:27    阅读次数:27
b_lc_给定行和列的和求可行矩阵(找行和列的和的最小值填)
给定 rowSum[i] 是二维矩阵中第 i 行元素的和, colSum[j] 是第 j 列元素的和 请找到大小为 rowSum.length x colSum.length 的任意 非负整数 矩阵,且该矩阵满足 rowSum 和 colSum 的要求。 思路 我是这样想的:越先找到越小的值填了的容 ...
分类:其他好文   时间:2020-11-11 16:26:18    阅读次数:8
hdu 6868
题意 $T$组数据$(n,m)$ 令$f(n)=\sum\limits_{d|n}|\mu(d)|$ 求$\sum\limits_^m f(ni)$ \(T\le 10^4,n,m\le 10^7\) 做法 显然$f(n)$是积性函数 则$f(ni)=\frac{f(n)f(i)}{f((n,i)) ...
分类:其他好文   时间:2020-11-11 16:07:42    阅读次数:5
[2020-CCPC Changchun Onsite]-F. Strange Memory(dsu on tree)
[2020-CCPC Changchun Onsite]-F. Strange Memory(dsu on tree) 题面: 题意: 给定一个含有$\mathit n$个节点的数,求下式的值。 \[ \sum\limits_{i=1}^n\sum\limits_{j=i+1}^n [a_i \op ...
分类:其他好文   时间:2020-11-10 10:56:31    阅读次数:7
20.11.8 leetcode 1,122
#1:在数组中找两个数,使其和为target 链接:https://leetcode-cn.com/problems/two-sum/ 暴力就是n^2,可以用map来做,这里介绍一下map.count(tmp)函数,是搜索key的值,map里存在值为tmp的key就返回1,否则是0 #122:给定一 ...
分类:其他好文   时间:2020-11-08 17:59:16    阅读次数:25
22663条   上一页 1 ... 40 41 42 43 44 ... 2267 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!