题解 | 分元宵

分元宵

https://www.nowcoder.com/practice/0be3d626297a4c0aa99bf99d7cb888d5

import sys
from collections import deque, defaultdict, Counter
from functools import cache
import math
import heapq

# for line in sys.stdin:
#     a = line.split()
#     print(int(a[0]) + int(a[1]))

a, b, c, d, mod = map(int, sys.stdin.readline().split())

x = a * b

print(pow(x, c*d, mod))



全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务