結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー titan23titan23
提出日時 2022-07-15 21:20:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 507 bytes
コンパイル時間 639 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 73,672 KB
最終ジャッジ日時 2023-09-10 00:12:14
合計ジャッジ時間 8,403 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
73,436 KB
testcase_01 AC 112 ms
73,184 KB
testcase_02 AC 110 ms
73,160 KB
testcase_03 AC 112 ms
73,416 KB
testcase_04 AC 112 ms
73,524 KB
testcase_05 AC 112 ms
73,100 KB
testcase_06 AC 114 ms
73,672 KB
testcase_07 AC 110 ms
73,240 KB
testcase_08 AC 109 ms
73,300 KB
testcase_09 AC 110 ms
73,524 KB
testcase_10 AC 109 ms
73,380 KB
testcase_11 AC 111 ms
73,276 KB
testcase_12 AC 110 ms
73,324 KB
testcase_13 AC 109 ms
73,628 KB
testcase_14 AC 112 ms
73,328 KB
testcase_15 AC 110 ms
73,064 KB
testcase_16 AC 109 ms
73,276 KB
testcase_17 AC 110 ms
73,104 KB
testcase_18 AC 110 ms
73,308 KB
testcase_19 AC 112 ms
73,240 KB
testcase_20 AC 112 ms
73,068 KB
testcase_21 AC 110 ms
73,064 KB
testcase_22 AC 109 ms
73,064 KB
testcase_23 AC 109 ms
73,120 KB
testcase_24 AC 111 ms
73,428 KB
testcase_25 AC 110 ms
73,176 KB
testcase_26 AC 111 ms
73,224 KB
testcase_27 AC 112 ms
73,332 KB
testcase_28 AC 110 ms
73,160 KB
testcase_29 AC 109 ms
73,468 KB
testcase_30 AC 110 ms
73,324 KB
testcase_31 AC 110 ms
73,512 KB
testcase_32 AC 114 ms
73,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

'''input

'''
import sys
import math
from bisect import bisect_right, bisect_left
from itertools import *
from collections import *
from heapq import heapify, heappush, heappop
import random
inf = float('inf')
# mod = 1000000007
mod = 998244353
input = lambda: sys.stdin.readline().rstrip()
def error(*args, sep=' ', end='\n'):
  print(*args, sep=sep, end=end, file=sys.stderr)
# sys.setrecursionlimit(10**6)

#  -----------------------  #

a, n = map(int, input().split())
print(mod)
print(pow(a, n, mod))
0