結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー chineristACchineristAC
提出日時 2022-07-15 21:20:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 861 ms
コンパイル使用メモリ 86,584 KB
実行使用メモリ 74,980 KB
最終ジャッジ日時 2023-09-10 00:10:59
合計ジャッジ時間 8,278 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
74,608 KB
testcase_01 AC 115 ms
74,544 KB
testcase_02 AC 110 ms
74,612 KB
testcase_03 AC 110 ms
74,616 KB
testcase_04 AC 110 ms
74,424 KB
testcase_05 AC 111 ms
74,756 KB
testcase_06 AC 110 ms
74,404 KB
testcase_07 AC 109 ms
74,644 KB
testcase_08 AC 111 ms
74,980 KB
testcase_09 AC 111 ms
74,572 KB
testcase_10 AC 112 ms
74,748 KB
testcase_11 AC 112 ms
74,768 KB
testcase_12 AC 112 ms
74,612 KB
testcase_13 AC 111 ms
74,924 KB
testcase_14 AC 112 ms
74,568 KB
testcase_15 AC 112 ms
74,524 KB
testcase_16 AC 113 ms
74,824 KB
testcase_17 AC 111 ms
74,852 KB
testcase_18 AC 113 ms
74,548 KB
testcase_19 AC 113 ms
74,532 KB
testcase_20 AC 111 ms
74,424 KB
testcase_21 AC 115 ms
74,772 KB
testcase_22 AC 113 ms
74,752 KB
testcase_23 AC 118 ms
74,832 KB
testcase_24 AC 113 ms
74,812 KB
testcase_25 AC 115 ms
74,596 KB
testcase_26 AC 112 ms
74,420 KB
testcase_27 AC 113 ms
74,812 KB
testcase_28 AC 112 ms
74,828 KB
testcase_29 AC 111 ms
74,408 KB
testcase_30 AC 114 ms
74,764 KB
testcase_31 AC 113 ms
74,540 KB
testcase_32 AC 115 ms
74,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import log,gcd

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

a,n = mi()

M = 998244353

print(M)
print(pow(a,n,M))
0