码迷,mamicode.com
首页 >  
搜索关键字:ll    ( 5333个结果
Codeforces Round #628 (Div. 2) F——Ehab's Last Theorem dfs
#include<bits/stdc++.h> #define ls rt<<1 #define rs rt<<1|1 using namespace std; typedef long long ll; const int p=1e8+7; vector<int>v[1001000],ans; i ...
分类:其他好文   时间:2020-06-14 12:35:49    阅读次数:64
数论模板
数论: 快速乘: ll ModMul(ll a,ll b,ll n){//快速积取模 a*b%n ll ans=0; while(b){ if(b&1) ans=(ans+a)%n; a=(a+a)%n; b>>=1; } return ans; } 快速幂: ll ModExp(ll a,ll b ...
分类:其他好文   时间:2020-06-13 23:38:02    阅读次数:91
求一个数的因子之和
直接求解 LL factor(LL x){ LL cnt = 0; for(int i=1;i<=sqrt(x);i++){ if(x%i==0){ if(x/i == i) cnt += i; // ex: 9 = 3 * 3 else cnt += i + x/i; } } return cnt ...
分类:其他好文   时间:2020-06-13 21:08:25    阅读次数:98
linux
查看当前目录下的所以文件及目录ls ll ls -l cd 查看当前目录pwd ctrl+C结束进程 ctrl+Z将程序在后台运行 新建目录mkdir dir1 删除目录rm -rf dir 递归创建目录mkdir -p /dir1/dir2/dir3 clear 查看ip信息:ifconfig s ...
分类:系统相关   时间:2020-06-13 00:54:09    阅读次数:111
Pgpool-II 模式初步浅析
Pgpool-II模式初步浅析1.什么是pgpool-II简单通俗的来讲,pgpool-II是一个位于PostgreSQL服务器和PostgreSQL数据库客户端之间的中间件。pgpool-II主要提供负载均衡、连接池、复制、并行查询等等功能。Pgpool-ll可以运行在linux、solaris、FreeBSD以及基本上所有的类UNIX架构的平台。不支持Windows系统。2.Pgpool-ll
分类:其他好文   时间:2020-06-13 00:49:08    阅读次数:310
Codeforces Round #648 (Div. 2) D - Solve The Maze bfs
#pragma GCC optimize(2) #include<bits/stdc++.h> #define ll long long #define maxn 1000005 #define inf 1e9 #define pb push_back #define rep(i,a,b) for( ...
分类:其他好文   时间:2020-06-12 21:47:58    阅读次数:79
Delete Directory Recursively
How to delete a directory recursively with all its subdirectories and files in Java In this short article, you’ll learn how to delete a directory recu ...
分类:其他好文   时间:2020-06-12 14:30:22    阅读次数:59
Loj141. 回文子串
题目链接 题解 回文自动机双向插入模版题,还需要动态维护回文子串个数,贴个板子 查看代码 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 1e6+5; const int mod ...
分类:其他好文   时间:2020-06-11 13:47:22    阅读次数:55
[Intro to Deep Learning with PyTorch -- L2 -- N15] Softmax function
The Softmax Function In the next video, we'll learn about the softmax function, which is the equivalent of the sigmoid activation function, but when t ...
分类:其他好文   时间:2020-06-11 09:15:58    阅读次数:62
luogu P3812 【模板】线性基
题目描述 给定n个整数(数字可能重复),求在这些数中选取任意个,使得他们的异或和最大。 输入格式 第一行一个数n,表示元素个数 接下来一行n个数 输出格式 仅一行,表示答案。 #include<cstdio> using namespace std; #define ll long long ll ...
分类:其他好文   时间:2020-06-10 22:58:03    阅读次数:67
5333条   上一页 1 ... 23 24 25 26 27 ... 534 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!