結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー siganaisiganai
提出日時 2022-07-15 21:21:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 144 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 86,960 KB
実行使用メモリ 78,748 KB
最終ジャッジ日時 2023-09-10 00:16:41
合計ジャッジ時間 9,138 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
78,496 KB
testcase_01 AC 144 ms
78,528 KB
testcase_02 AC 139 ms
78,456 KB
testcase_03 AC 137 ms
78,464 KB
testcase_04 AC 136 ms
78,528 KB
testcase_05 AC 138 ms
78,388 KB
testcase_06 AC 142 ms
78,668 KB
testcase_07 AC 142 ms
78,464 KB
testcase_08 AC 142 ms
78,680 KB
testcase_09 AC 142 ms
78,700 KB
testcase_10 AC 140 ms
78,680 KB
testcase_11 AC 140 ms
78,572 KB
testcase_12 AC 140 ms
78,536 KB
testcase_13 AC 140 ms
78,412 KB
testcase_14 AC 140 ms
78,448 KB
testcase_15 AC 140 ms
78,456 KB
testcase_16 AC 141 ms
78,432 KB
testcase_17 AC 142 ms
78,532 KB
testcase_18 AC 141 ms
78,396 KB
testcase_19 AC 138 ms
78,456 KB
testcase_20 AC 142 ms
78,396 KB
testcase_21 AC 140 ms
78,616 KB
testcase_22 AC 138 ms
78,676 KB
testcase_23 AC 139 ms
78,636 KB
testcase_24 AC 140 ms
78,400 KB
testcase_25 AC 140 ms
78,748 KB
testcase_26 AC 135 ms
78,540 KB
testcase_27 AC 137 ms
78,500 KB
testcase_28 AC 136 ms
78,396 KB
testcase_29 AC 138 ms
78,396 KB
testcase_30 AC 136 ms
78,656 KB
testcase_31 AC 138 ms
78,468 KB
testcase_32 AC 135 ms
78,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env PyPy3

from collections import Counter, defaultdict, deque
import itertools
import re
import math
from functools import reduce
import operator
import bisect
from heapq import *
import functools
mod=998244353

import sys
input=sys.stdin.readline
a,n = map(int,input().split())
print(mod)
print(pow(a,n,mod))
0