結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー Kiri8128Kiri8128
提出日時 2022-04-18 23:04:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 81,908 KB
実行使用メモリ 53,572 KB
最終ジャッジ日時 2024-05-03 22:41:00
合計ジャッジ時間 4,276 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,952 KB
testcase_01 AC 36 ms
53,036 KB
testcase_02 AC 37 ms
52,972 KB
testcase_03 AC 37 ms
52,424 KB
testcase_04 AC 38 ms
51,832 KB
testcase_05 AC 36 ms
52,840 KB
testcase_06 AC 38 ms
52,644 KB
testcase_07 AC 39 ms
52,316 KB
testcase_08 AC 37 ms
52,224 KB
testcase_09 AC 37 ms
51,688 KB
testcase_10 AC 36 ms
52,116 KB
testcase_11 AC 36 ms
51,776 KB
testcase_12 AC 37 ms
52,080 KB
testcase_13 AC 38 ms
51,684 KB
testcase_14 AC 36 ms
53,048 KB
testcase_15 AC 38 ms
52,076 KB
testcase_16 AC 38 ms
53,572 KB
testcase_17 AC 37 ms
52,944 KB
testcase_18 AC 37 ms
52,500 KB
testcase_19 AC 38 ms
53,500 KB
testcase_20 AC 37 ms
52,352 KB
testcase_21 AC 37 ms
52,296 KB
testcase_22 AC 37 ms
52,068 KB
testcase_23 AC 38 ms
51,692 KB
testcase_24 AC 38 ms
52,496 KB
testcase_25 AC 37 ms
52,212 KB
testcase_26 AC 37 ms
52,944 KB
testcase_27 AC 37 ms
52,872 KB
testcase_28 AC 38 ms
52,700 KB
testcase_29 AC 40 ms
52,076 KB
testcase_30 AC 37 ms
52,324 KB
testcase_31 AC 36 ms
51,824 KB
testcase_32 AC 38 ms
52,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

P = 998244353
a, n = map(int, input().split())
assert 2 <= a <= 1000
assert 2 <= n <= 10 ** 18
print(P)
print(pow(a, n, P))
# print(10000000)
# print(3741824)
# print(998244353)
# print(877641551)
0