QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#956439 | #1259. Game On Board | jijidawang | WA | 11ms | 8960kb | Python3 | 97b | 2025-03-29 19:52:09 | 2025-03-29 19:52:10 |
Judging History
answer
p = 998244353
n, m = map(int, input().split())
print((pow(n, m - 1, p) + pow(m, n - 1, p)) % p)
詳細信息
Test #1:
score: 0
Wrong Answer
time: 11ms
memory: 8960kb
input:
1 1
output:
2
result:
wrong answer expected '1', found '2'