当前位置:网站首页>Fast power writing
Fast power writing
2022-07-24 17:28:00 【*c.】
#include<bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
typedef long long ll;
const int N=1e5+10;
ll qmi(ll a,ll b, ll c)
{
int res=1;
while(b)
{
if(b&1) res=(ll)res*a % c;
b>>=1;
a=a*a%c;
}
return res;
}
int main()
{
IOS
ll a,b,c;
cin>>a>>b>>c;
cout<<qmi(a,b,c);
return 0;
}Application of fast power
边栏推荐
- UFW port forwarding
- One article of quantitative framework backtrader: understand indicator indicators
- Three.js (7): local texture refresh
- What is fuzzy theory, foundation and process
- mysql 查询某字段中以逗号分隔的字符串的方法
- TCP protocol debugging tool tcpengine v1.3.0 tutorial
- [how to optimize her] teach you how to locate unreasonable SQL? And optimize her~~~
- Portmap port forwarding
- Check the actual data growth of the database
- Apachecon Asia 2022 opens registration: pulsar technology issues make a big debut
猜你喜欢

portmap 端口转发

Getaverse,走向Web3的远方桥梁

What is fuzzy theory, foundation and process

【GNN报告】腾讯AI lab 徐挺洋:图生成模型及其在分子生成中的应用

快速入门

Nearly 30 colleges and universities were named and praised by the Ministry of education!

Reptiles and counter crawls: an endless battle

Stop littering configuration files everywhere! Try our 7-year-old solution, which is stable

Eth POS 2.0 stacking test network pledge process

Cann training camp learns the animation stylization and AOE ATC tuning of the second season of 2022 model series
随机推荐
JS image conversion Base64 Base64 conversion to file object
Internet Download Manager配置
2022-07-21 Daily: Wu Enda wrote: how to establish projects suitable for AI career
CDN(Content Delivery Network)内容分发网络从入门到与实战
Coldplay weekly issue 10
Scroll bar adjust brightness and contrast
Three.js (7): local texture refresh
Want to make sandbox games? Then you must not miss this plug-in (unity3d)
Buffer overflow vulnerability lab experiment record
Delay and jitter in network
Niuke linked list solution record
图像像素的逻辑操作
Nearly 30 colleges and universities were named and praised by the Ministry of education!
Separation and merging of channels
使用matplotlib模拟线性回归
近30所高校,获教育部点名表扬!
Is Shenwan Hongyuan securities' low commission account reliable, reliable and safe
Pat class A - A + B format
MySQL addition, deletion, modification, retrieval and constraint (detailed teaching)
Still developing games with unity? Then you're out. Try unity to build an answer system