首页 > TAG信息列表 > MOD3

go 1.16.4: go mod tidy的用途

一,查看帮助: 1,查看原始文档 liuhongdi@lhdpc:/data/go/mod3$ go help mod tidy usage: go mod tidy [-e] [-v] Tidy makes sure go.mod matches the source code in the module. It adds any missing modules necessary to build the current module's packages and dependenc

任意模数 NTT

#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAXN=1<<21,MOD1=998244353,MOD2=1004535809,MOD3=469762049; inline ll fpow(ll a,ll x,ll mod) { ll ans=1; for(;x;x>>=1,a=a*a%mod) if(x&1) ans=ans*a%mod; return

2019牛客暑期多校训练营(第四场)D-triples I

>传送门< 题意:求最少需要多少个3的倍数按位或后可以得到数字a 思路:利用3的倍数对应的二进制数的性质来先选出一个x,然后根据数字a再配一个y出来 首先,我们都知道十进制中,任意一个数只要每一位相加的和能被3整除,那么这个数就能被3整除。 这是为什么? 因为十进制中每一个位都会10^k次方,

P4245 【模板】任意模数NTT

Luogu4245 只要做三次的NTT,快的飞起 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #define debug(...) fprintf(stderr,__VA_ARGS__) #define Debug(x) cout<<#x<<"="<<x<<endl using names