結果
問題 | No.2007 Arbitrary Mod (Easy) |
ユーザー |
![]() |
提出日時 | 2022-07-15 21:22:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 54 ms / 2,000 ms |
コード長 | 768 bytes |
コンパイル時間 | 297 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 61,312 KB |
最終ジャッジ日時 | 2024-06-27 16:44:14 |
合計ジャッジ時間 | 4,300 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
# ライブラリさんたちfrom collections import deque, Counter, defaultdictfrom operator import itemgetterfrom bisect import bisect_right, bisect_leftfrom itertools import combinations, permutations, accumulate, productimport heapq# from numpy import base_reprfrom copy import deepcopyimport 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 + 1M = 10 ** 7a,n = inmap()print(M)print(pow(a , n, M))