Skip to content

Commit

Permalink
Update expotential_by_squaring.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
radicalparty authored Aug 14, 2024
1 parent 6788b52 commit f9a3c3f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//tip: python에서는 pow(n, k, p): n^k mod p를 최적화해서 계산해주므로 참고하자. python에서 pow(n, k) % p는 pow(n, k, p)와 다르게 느리므로 주의
using ll = long long;
ll ebs(ll v, ll p, ll mod){
if (p == 1) return v;
Expand Down

0 comments on commit f9a3c3f

Please sign in to comment.