当前位置:网站首页>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
边栏推荐
- Logisim group experiment 10 single cycle MIPS CPU
- Logical operation of image pixels
- Extension of ES6 function
- In the morning, Tencent took out 38K, which let me see the ceiling of the foundation
- ShardingSphere数据库读写分离
- Kyligence attended the Huawei global smart finance summit to accelerate the expansion of the global market
- Apachecon Asia 2022 opens registration: pulsar technology issues make a big debut
- Work with growingio engineers this time | startdt Hackathon
- CPU comparison
- Why can't sizeof (ARR) / size (arr[0]) be used to calculate the array length inside the called function?
猜你喜欢

In the morning, Tencent took out 38K, which let me see the ceiling of the foundation

Kernel development

Mobile robot (IV) four axis aircraft

Opencv has its own color operation
![[how to optimize her] teach you how to locate unreasonable SQL? And optimize her~~~](/img/10/996d594a53d9a34a36079fed829f27.png)
[how to optimize her] teach you how to locate unreasonable SQL? And optimize her~~~

Natbypass port forwarding
![[wechat official account H5] authorization](/img/d1/2712f87e134c0b8b8fdeaab9e30492.png)
[wechat official account H5] authorization

Reptiles and counter crawls: an endless battle

Cann training camp learns the animation stylization and AOE ATC tuning of the second season of 2022 model series

hcip第三天
随机推荐
MySQL addition, deletion, modification, retrieval and constraint (detailed teaching)
hcip第三天
Portfwd port forwarding
PAT甲级——A + B 格式
An example of using viewthatfits adaptive view in swiftui 4.0
Supervisor common commands
Memory allocation and recycling strategy
Scept: consistent and strategy based trajectory prediction for planned scenarios
MySQL数据库的一个问题
实习报告1——人脸三维重建方法
Shardingsphere database read / write separation
Scroll bar adjust brightness and contrast
DBF menu driver: librarydatabaseproject
滚动条调整亮度和对比度
Cann training camp learns the animation stylization and AOE ATC tuning of the second season of 2022 model series
Image information is displayed by browser: data:image/png; Base64, + image content
什么是模糊理论,基础,流程
Reptiles and counter crawls: an endless battle
二维卷积——torch.nn.conv2d的使用
Can Lu Zhengyao hide from the live broadcast room dominated by Luo min?