MCPcopy Create free account
hub / github.com/E869120/math-algorithm-book / main

Function main

codes/cpp/Code_4_06_3.cpp:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5long long a, b, Answer = 1; // a �� 0 ��� 1 �Ȃ̂ŁAAnswer=1 �ɏ��������Ă���
6
7int main() {
8 cin >> a >> b;
9 for (int i = 1; i <= b; i++) {
10 Answer = (Answer * a) % mod;
11 }
12 cout << Answer << endl;
13 return 0;
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected