Submission #11218048


Source Code Expand

Copy
#include<iostream>
using namespace std;
11 fun(11 a11 b1l n)
{
11 res=1;
while(b!=0)
{
if((b&1)==1)
res=res*a%n;
 a=a*a%n;
 b=b>>1;
 }
 return res;
 }
int main()
{ long long n,m,p,t;
 cin>>n>>m>>p;
 t=fun(n,p,m);
 cout<<t<<endl;
return 0;
}

Submission Info

Submission Time
Task B - n^p mod m
User luogu_bot1
Language C++ (GCC 5.4.1)
Score 0
Code Size 264 Byte
Status

Compile Error

./Main.cpp:6:1: error: stray ‘\357’ in program
 while(b!=0)
 ^
./Main.cpp:6:1: error: stray ‘\274’ in program
./Main.cpp:6:1: error: stray ‘\211’ in program
./Main.cpp:3:1: error: expected unqualified-id before numeric constant
 11 fun(11 a11 b1l n)
 ^