当前位置:网站首页>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
边栏推荐
- Logical operation of image pixels
- 实习报告1——人脸三维重建方法
- quick get start
- 通道的分离与合并
- Hcip fourth day notes
- 还在用Xshell?你out了,推荐一个更现代的终端连接工具!
- 快速入门
- ufw 端口转发
- Iftnews | Christie's launched its venture capital department, aiming at Web3 and metauniverse industries
- Bring 120W goods in 15 seconds. You can also shoot such a popular video
猜你喜欢

NATBypass 端口转发

Kernel development

Internet Download Manager Configuration

Safety: how to provide more protection for pedestrians

Reptiles and counter crawls: an endless battle

量化框架backtrader之一文读懂Indicator指标

OS Experiment 5 process switching based on kernel stack switching

Portmap port forwarding

Method of querying comma separated strings in a field by MySQL

Is computer monitoring true? Four experiments to find out
随机推荐
CDN (content delivery network) content distribution network from entry to practice
Apachecon Asia 2022 opens registration: pulsar technology issues make a big debut
Analog electricity - what is the resistance?
Getaverse,走向Web3的远方桥梁
ShardingSphere数据库读写分离
HCNP Routing&Switching之DHCP中继
PAT甲级——拼写正确
Code random notes_ Linked list_ 707 design linked list
2022 Yangtze River Delta industrial automation exhibition will be held in Nanjing International Exhibition Center in October
socat 端口转发
Iftnews | Christie's launched its venture capital department, aiming at Web3 and metauniverse industries
Wallys/3 × 3/2 × 2 MIMO 802.11ac Mini PCIe Wi-Fi Module, Dual Band, 2,4GHz / 5GHz/QCN9074
【GNN报告】腾讯AI lab 徐挺洋:图生成模型及其在分子生成中的应用
近30所高校,获教育部点名表扬!
Canvas from getting started to persuading friends to give up (graphic version)
Getaverse,走向Web3的远方桥梁
Method of querying comma separated strings in a field by MySQL
Buffer overflow vulnerability lab experiment record
What should we pay attention to in the resume of software testing?
Keyboard input operation