码迷,mamicode.com
首页 >  
搜索关键字:matrix power series    ( 9093个结果
【CF906D】Power Tower
题目 题目链接:https://codeforces.com/problemset/problem/906/D 给出一个数列 $a$,每次询问给出 $l,r$,求 思路 根据扩展欧拉定理,当 $b\geq \varphi(p)$ 时, $$a^b\equiv a^{b\bmod \varphi(p) ...
分类:其他好文   时间:2020-03-31 14:40:30    阅读次数:53
E - Power Strings
E - Power Strings Given two strings a and b we define ab to be their concatenation. For example, if a = "abc" and b = "def" then ab = "abcdef". If we ...
分类:其他好文   时间:2020-03-31 14:21:25    阅读次数:63
73. 矩阵置零
1 class Solution 2 { 3 int dx[4] = {1,0,-1,0}; 4 int dy[4] = {0,1,0,-1}; 5 public: 6 void setZeroes(vector<vector<int>>& matrix) 7 { 8 int m = matrix. ...
分类:其他好文   时间:2020-03-30 19:52:56    阅读次数:54
Android 增加虚拟的关机按钮实现虚拟按键关机功能
参考链接: https://blog.csdn.net/ansondroider/article/details/97259148 准备一个关机的图标,网上去找 将这个图标放入 Android 源码目录,如下 在下面的文件里面增加相关的字符: 添加按键布局: frameworks/base/pack ...
分类:移动开发   时间:2020-03-30 14:29:12    阅读次数:107
Pandas的对齐运算和函数
Pandas的对齐运算 是数据清洗的重要过程,可以按索引对齐进行运算,如果没对齐的位置则补NaN,最后也可以填充NaN Series的对齐运算 1. Series 按行、索引对齐 s1 = pd.Series(range(10, 20), index=range(10)) s2 = pd.Serie ...
分类:其他好文   时间:2020-03-29 19:31:40    阅读次数:90
86D - Powerful array
莫队。 统计ai[i]的出现次数,每一次先还原贡献,再加上或减去当前的贡献即可。 ...
分类:其他好文   时间:2020-03-29 11:04:11    阅读次数:68
【模版】高精度算法
1 #include<bits/stdc++.h> 2 3 using namespace std; 4 5 const int power=4; 6 const int base=1e4; 7 const int maxn=2e3+5; 8 9 struct num{ 10 int a[maxn< ...
分类:编程语言   时间:2020-03-29 10:28:23    阅读次数:61
pandas_时间序列
In [24]: pd.Series(range(1000), pd.date_range("20170101", periods=1000))Out[24]:2017-01-01 02017-01-02 12017-01-03 22017-01-04 32017-01-05 4 ...2019-0 ...
分类:其他好文   时间:2020-03-29 01:27:25    阅读次数:82
windows子系统(WSL)root或者普通用户密码忘记,如何修改?
一、以管理员权限启动PowerShell,输入lxrun /setdefaultuser root,打开WSL,输入passwd root修改密码。 二、打开CMD或PowerShell,输入ubuntu config --default-user root,修改ubuntu系统默认用户为root, ...
分类:Windows程序   时间:2020-03-28 23:25:56    阅读次数:118
pytorch属性统计
一、范数 1)norm表示范数,normalize表示正则化 2)matrix norm 和 vector norm的区别: 3)范数计算及表示方法 二、基本统计 1)mean, max, min, prod, sum 2)argmax, argmin 3)max的其他用法 三、topk 和 kth ...
分类:其他好文   时间:2020-03-28 23:15:17    阅读次数:73
9093条   上一页 1 ... 65 66 67 68 69 ... 910 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!