結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー IonaIona
提出日時 2022-07-15 21:22:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 768 bytes
コンパイル時間 774 ms
コンパイル使用メモリ 87,288 KB
実行使用メモリ 73,012 KB
最終ジャッジ日時 2023-09-10 00:24:17
合計ジャッジ時間 8,716 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
72,644 KB
testcase_01 AC 110 ms
73,000 KB
testcase_02 AC 112 ms
72,800 KB
testcase_03 AC 111 ms
72,876 KB
testcase_04 AC 113 ms
73,012 KB
testcase_05 AC 111 ms
72,976 KB
testcase_06 AC 111 ms
72,512 KB
testcase_07 AC 112 ms
72,796 KB
testcase_08 AC 111 ms
73,000 KB
testcase_09 AC 111 ms
72,796 KB
testcase_10 AC 111 ms
73,012 KB
testcase_11 AC 111 ms
72,924 KB
testcase_12 AC 111 ms
72,880 KB
testcase_13 AC 110 ms
72,996 KB
testcase_14 AC 111 ms
72,520 KB
testcase_15 AC 111 ms
72,984 KB
testcase_16 AC 110 ms
72,880 KB
testcase_17 AC 111 ms
72,976 KB
testcase_18 AC 112 ms
72,664 KB
testcase_19 AC 111 ms
72,992 KB
testcase_20 AC 111 ms
72,900 KB
testcase_21 AC 113 ms
72,888 KB
testcase_22 AC 113 ms
72,840 KB
testcase_23 AC 111 ms
72,792 KB
testcase_24 AC 112 ms
72,888 KB
testcase_25 AC 110 ms
72,920 KB
testcase_26 AC 109 ms
72,860 KB
testcase_27 AC 111 ms
72,520 KB
testcase_28 AC 112 ms
72,648 KB
testcase_29 AC 112 ms
72,880 KB
testcase_30 AC 110 ms
72,864 KB
testcase_31 AC 110 ms
72,524 KB
testcase_32 AC 112 ms
72,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# ライブラリさんたち
from collections import deque, Counter, defaultdict
from operator import itemgetter 
from bisect import bisect_right, bisect_left 
from itertools import combinations, permutations, accumulate, product
import heapq
# from numpy import base_repr
from copy import deepcopy
import sys
# sys.setrecursionlimit(10**6)
from math import gcd, log2, log10

# 便利な関数くん
def my_lcm(a, b):
    return a * b // gcd(a, b)
def my_ceil(N, W):
    return (-(-N//W))
def out(func):
    if func: print("Yes")
    else: print("No")
def inint(): return int(input())
def inmap(): return map(int, input().split())

# 定数ちゃん
# MOD = 998244353
# MOD = 1000000007
# INF = 10 ** 18 + 1

M = 10 ** 7

a,n = inmap()
print(M)
print(pow(a , n, M))

0