Educational Codeforces Round 7 F - The Sum of the k-th Powers(拉格朗日插值)

ArduPilot移植到自定义硬件:完整指南 详解如何将ArduPilot成功移植到自定义硬件平台,涵盖环境搭建、代码配置与调试技巧。无论是初学者还是进阶开发者,都能快速掌握ArduPilot在不同硬件上的适配方法,提升开发效率。 阅读详情

题目

给定n(1<=n<=1e9),k(0<=k<=1e6),

求 mod(1e9+7)

思路来源

https://blog.csdn.net/BeNoble_/article/details/79512449

题解

所求式为(k+1)次多项式的单点值,需要k+2个点

记f(i)=i^k,先求出f(0)到f(k+2),再前缀和求出sum(0)到sum(k+2)

拉格朗日预处理pre[]suf[]finv[]之后,

对于每个n,用sum(0)到sum(k+2)的值O(k)的线性求即可

代码

​
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1e6+10;
const int mod=1e9+7;
int n,m,d,sg; 
ll p[N],cnt;
ll g[N],sum[N];//g[i]=i^k
ll fac[N],finv[N];//分母 阶乘 阶乘逆元 
ll pre[N],suf[N];//分子前缀积 分子后缀积
ll ans; 
bool ok[N];
ll modpow(ll x,ll n,ll p)
{
	ll res=1;
	for(;n;x=x*x%p,n/=2)
	if(n&1)res=res*x%p;
	return res;
} 
void init(int mx)
{
	//板子部分 
	fac[0]=pre[0]=suf[mx]=1;
	for(ll i=1;i<=mx;++i)
	{
		fac[i]=fac[i-1]*i%mod;
		pre[i]=1ll*(n-i+1)%mod*pre[i-1]%mod;
	}
	finv[mx]=modpow(fac[mx],mod-2,mod);
	for(ll i=mx;i>=1;--i)
	{
		finv[i-1]=finv[i]*i%mod;
		suf[i-1]=1ll*(n-i)%mod*suf[i]%mod;
	}

	//预处理g[0]到g[mx]部分 
	g[1]=1;
	for(ll i=2;i<=mx;++i)
	{
		if(!ok[i])
		{
			p[cnt++]=i;
			g[i]=modpow(i,m,mod);
		}
		for(ll j=0,k;j<cnt&&(k=i*p[j])<=mx;++j)
		{
			ok[k]=1;
			g[k]=g[i]*g[p[j]]%mod;
			if(i%p[j]==0)break;
		}
	}
	for(ll i=1;i<=mx;++i)
	sum[i]=(sum[i-1]+g[i])%mod;
} 
int main()
{
	//求前缀和 即插出m+1次多项式前缀和函数的前m+2个点 然后O(m)求单点 
	scanf("%d%d",&n,&m);//sigma i^m 为m+1次多项式 
	d=m+1;//d次多项式 d+1个点 
	init(d);
	if(n<=d)printf("%I64d\n",sum[n]);
	else
	{
		for(int i=0;i<=d;++i)
		{
			sg=(d-i)&1?-1:1;
			(ans+=sg*pre[i]%mod*suf[i]%mod*finv[i]%mod*finv[d-i]%mod*sum[i]%mod)%=mod;
		}
		printf("%I64d\n",(ans+mod)%mod);
	}
    return 0;
} 

​

 

十四种逻辑器件综合对比——《器件手册--逻辑器件》 逻辑器件是数字电路中最基本的逻辑单元,用于实现基本的逻辑运算,如与、或、非、异或等。逻辑门根据输入信号的组合产生相应的输出信号。与门:只有当所有输入信号都为高电平时,输出才为高电平。或门:只要有一个输入信号为高电平,输出就为高电平。非门:输出信号与输入信号相反。异或门:当两个输入信号不同时,输出为高电平;相同则输出为低电平。用于对输入信号进行反相操作,即将高电平转换为低电平,低电平转换为高电平。常用于信号的反相处理和逻辑电平的转换。 阅读详情

相关推荐

扩展卡尔曼滤波(EKF)理论讲解与实例(matlab、python和C++代码)

扩展卡尔曼滤波(EKF)理论讲解与实例(matlab、python和C++代码) 文章目录扩展卡尔曼滤波(EKF)理论讲解与实例(matlab、python和C++代码)理论讲解KF和EKF模型对比雅可比矩阵计算计算实例应用实例线性模型CV模型:CA模型非线性模型CTRV模型:CTRV实例(python)small demo抛物线demo飞机高度demoC++实例参考文献 我们上篇提到的卡尔曼滤波是用于线性系统,预测(运动)模型和观测模型是在假设高斯和线性情况下进行的。简单的卡尔曼滤波必须应用在符合高斯分布

O_MMMM_O的博客 10万+

Codeforce 622 F. The Sum of the k-th Powers(拉格朗日插值求k次幂之和,拉格朗日插值公式)

题目大意:求 ∑i=1nik\displaystyle\sum_{i = 1}^ni^ki=1∑n​ik 求k次幂有多种求法,例如: 伯努利数求k次幂之和(待补) 斯特林数求k次幂之和 拉格朗日插值法求k次幂之和 这里采用拉格朗日插值法进行求解。 拉格朗日可以通过 k+1k + 1k+1 个点唯一确定一个 kkk 次多项式,它的公式为:f(x)=∑i=1ny[i]∏i≠jx−x[j]x[i]−x...

qq_41997978的博客 814

【STM32/GD32】Keil uVision生成bin文件:从编译选项到Bootloader升级实战

本文详细讲解了如何在Keil uVision中配置STM32/GD32工程,使其在编译后自动生成Bootloader升级所需的bin文件。通过解析fromelf工具的使用、构建后命令的配置以及内存布局规划,深入阐述了bin文件在固件升级中的核心作用,并提供了串口Bootloader的实战框架与常见问题解决方案。

weixin_29190169的博客 406

cf F. The Sum of the k-th Powers (拉格朗日插值法求自然数幂和)模板

题目链接:哆啦A梦传送门 题意:求自然数幂和 : (n<1e9,k<1e6)。 题解:直接拉格朗日插值法就求出来了。 设,我们要想用拉格朗日插值法,就首先要知道f(n)函数的最高次幂才行。这里我们用差分就很显然了。 f(n)-f(n-1)=n^k,很显然f(n)的最高次幂为k+1,为什么呢? f '(n)=f(n)-f(n-1)=n^k,显然原函数最高次幂为k+1。 ...

Jiandong 552

Hypermesh2021实战:塑料圆盘结构化网格划分全流程(附避坑指南)

本文详细介绍了使用Hypermesh2021进行塑料圆盘结构化网格划分的全流程操作,包括几何预处理、网格生成策略及质量验证。特别针对工程实践中常见的12个典型问题提供解决方案,帮助用户提升CAE仿真分析的精度和效率。

weixin_29294597的博客 329

告别Keil4!手把手教你用Keil C51 V9.61编译51单片机代码(附最新激活方法)

本文详细介绍了Keil C51 V9.61在51单片机开发中的全栈升级指南,包括编译速度提升、调试器性能优化和现代开发支持等核心优势。通过智能安装方案、项目迁移实战和新特性深度应用,帮助开发者告别Keil4,大幅提升开发效率。附有最新激活方法和实用技巧,适用于嵌入式开发工程师。

weixin_26886855的博客 444

Educational Codeforces Round 7总结

A题: A题题目链接 题目描述: A. Infinite Sequence time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Con

多反思,多回顾,要坚持。 726

matlab相机标定_实战 | 相机标定

点击“计算机视觉life”关注,置顶更快接收消息!本文阅读时间约5分钟什么是相机标定?我们为什么需要相机标定?相机标定就是确定相机内参和外参的过程,其结果精度会直接影响视觉系统后续工作的准确性。坐标系相机标定涉及到了四大坐标系,分别为:像素坐标系图像物理坐标系相机坐标系世界坐标系为了进行相机标定,必须已知世界坐标系中足够多的三维空间点坐标,找到这些空间点在图像中投影点的二维图像坐标,并建...

weixin_39747334的博客 774

CF 622 F The Sum of the k-th Powers —— 拉格朗日插值

题目:http://codeforces.com/contest/622/problem/F 设 f(x) = 1^k + 2^k + ... + n^k 则 f(x) - f(x-1) = x^k 因为差值是 k 次的,所以 f 的次数应该是 k+1; 算出 k+2 个值就可以用拉格朗日插值求解了; 但是 k^2 会 T; #include<iostream&...

aodan5477的博客 199

基于PPT的三维光路结构示意图绘制实例演示-技术细节

基于PPT的三维光路结构示意图绘制实例演示-技术细节

简单光学 7517

C# 上位机高级功能实战:报警、历史回放与远程监控

本文介绍了工业上位机系统的高级功能实现,主要包括实时报警机制、历史数据回放和远程监控三部分。报警功能通过阈值检测实现异常提醒;历史回放利用数据库存储数据,通过定时器控制回放进度;远程监控提供TCP、WebSocket等多种数据传输方式。文章还给出了综合优化建议,如异步处理、报警去抖动等,最终形成一个包含数据采集、显示、存储、报表及高级功能的完整工业自动化闭环系统。

这里只有干货:从 Modbus 到 MES,从 YOLO 到工控机部署;65 篇现场排障案例,每篇都写到改哪一行。 773

Codeforces 622 F. The Sum of the k-th Powers

题目:点击打开链接 题意:求sigma(i : 1 to n)i^k。  分析: 做这个题之前需要知道一些知识: 拉格朗日插值:n-1次多项式可以用n个点唯一确定,插值公式是: 对于这道题可以发现对于每一个k次幂的积都可以用一个k+1次幂的多项式表示,于是我们可以构造出k+2个点来拟合这个多项式.拉格朗日插值公式在这里就是: 我们需要求的就是F(n),带入以后就是: 然后就...

常胜将军的博客 513

Sigrity Power DC Package Multi-Resistor Compact ET Model Extraction模式提取封装基板电热阻模型

DIE(定义DIE的参数):material设置为silicon(硅),Attach material(贴片的材料,设置为Die Attach),Attach thickness(贴片的材料的厚度,厚度设置为0.001mm,点击ok。Cap为覆盖材料,Material定义材料类型,thickness定义厚度,length和width定义长宽,Adhesive Material为胶的材料,Adhesive Material为胶的厚度,本例不定义,跳过即可。

weixin_54787054的博客 449

Educational Codeforces Round 7 F. The Sum of the k-th Powers 多项式、拉格朗日插值

个点带入拉格朗日插值公式中就可以计算出。如果按照这个公式代进去硬算时间复杂度。观察题面可以发现,所求的答案是一个。个连续的点对这个式子进行简化。预处理出来前缀积和后缀积,次多项式,我们只需要找。

2301_80099230的博客 1096

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

Educational Codeforces Round 7 F. The Sum of the k-th Powers(拉格朗日插值)

题目链接:https://codeforces.com/contest/622/problem/F mark一个dls拉个朗日插值的板子 代码: #include<bits/stdc++.h> #define xx first #define yy second #define mp make_pair #define pb push_back using name...

bibibibi的博客 233

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

The Sum of the k-th Powers(Educational Codeforces Round 7F+拉格朗日插值法)

题目链接 传送门 题面 题意 给你\(n,k\),要你求\(\sum\limits_{i=1}^{n}i^k\)的值。 思路 根据数学知识或者说题目提示可知\(\sum\limits_{i=1}^{n}i^k\)可以被一个\(k+1\)次多项式表示。 由拉格朗日插值法(推荐学习博客)的公式:\(L(x)=l(x)\sum\limits_{i=1}^{k+2}y_i\frac{w_i}{...

weixin_30823683的博客 124

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

The Sum of the k-th Powers()Educational Codeforces Round 7F+拉格朗日插值法)

题目链接 传送门 题面 题意 给你n,kn,kn,k,要你求∑i=1nik\sum\limits_{i=1}^{n}i^ki=1∑n​ik的值。 思路 根据数学知识或者说题目提示可知∑i=1nik\sum\limits_{i=1}^{n}i^ki=1∑n​ik可以被一个k+1k+1k+1次多项式表示。 由拉格朗日插值法(推荐学习博客)的公式:L(x)=l(x)∑i=1k+2yiwix−xi,其中...

Dillonh的博客 256

Educational Codeforces Round 7 F. The Sum of the k-th Powers 拉格朗日插值法

F. The Sum of the k-th Powers 题目连接: http://www.codeforces.com/contest/622/problem/F Description There are well-known formulas: , , . Also mathematicians found similar formulas for higher degrees. Find...

weixin_30455661的博客 124

[Educational Codeforces Round 7] - F The Sum of the k-th Powers

洛谷传送门 Codeforces传送门 题目大意 求∑i=1nikmod&ThinSpace;&ThinSpace;(109+7)\sum_{i=1}^ni^k\mod (10^9+7)∑i=1n​ikmod(109+7), n≤109,k≤106​n\le 10^9,k\le 10^6​n≤109,k≤106​ 解题分析 首先可以知道的是, 答案是一个k+1k+1k+1次, 关于...

LPA的博客 245

Educational Codeforces Round 7 F. The Sum of the k-th Powers

重心拉格朗日插值定理可以解决求和公式。。但是我的跑的也太慢了吧。。。 #include <cmath> #include <cstdio> #include <cstdlib> #include <cassert> #include <cstring> #include <set> #incl...

153

Codeforces Educational Codeforces Round 7 - F. The Sum of the k-th Powers

题意很简明就是求,我们可以证明Sd(n)是关于n的k+1次的多项式,具体证明参考这里 >

555.add(111) 541

[Educational Codeforces Round 7]F. The Sum of the k-th Powers

FallDream dalao找的插值练习题 题目大意:给定n,k,求Σi^k (i=1~n),对1e9+7取模。(n<=10^9,k<=10^6) 思路:令f(n)=Σi^k (i=1~n),则有f(n)-f(n-1)=n^k,说明f(n)的差分是n的k次多项式,则所求f(n)为n的k+1次多项式,利用拉格朗日插值公式,我们暴力计算n=0~k+1时的答案,代入公式,利用预处...

weixin_30474613的博客 111

Educational Codeforces Round 7 C---E

给定长度为n的数组,给定m个查询,求[l, r]中不等于x的其中一个下标。赛时认为维护[l,r]区间最大值和最小值及其所在下标就已经可行。 直接上ST表了。 实际上还有一种比较简单解法。 假设a[l] != x,那么直接输出l就好了。 否则,找到右边第一个和a[l]不相等的下标即可。(可双指针预处理实现) D. Optimal Number Permutation 题意: [1, n]中每个数都会出现两次,求S=∑i=1n(n−i)∗abs(y[i]−x[i]+i−n)S = \sum_{i = 1} ^

qq_56195933的博客 239

Educational Codeforces Round 7 题解

A. Infinite SequenceConsider the infinite sequence of integers: 1, 1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5…. The sequence is built in the following way: at first the number 1 is written out, then the

long-long-ago 805

【CodeForces - 622F 】The Sum of the k-th Powers (拉格朗日插值)

Examples Input 4 1 Output 10 Input 4 2 Output 30 Input 4 3 Output 100 Input 4 0 Output 4 这个就直接上我的模板就可以了. #include&amp;lt;iostream&amp;gt; #include&amp;lt;cstdio&amp;gt; #include&amp;lt;cmath&amp;gt; #defi...

Coldfresh的博客 528
上一篇: Codeforces Round #566 (Div. 2) E.Product Oriented Recurrence(矩阵快速幂)
下一篇: Miller-Rabin&&Pollard-pho模板(板子总结)
小衣同学
博客等级 码龄9年 1444粉丝 995原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小衣同学

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址