QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#188537 | #6736. Alice and Bob | guichen | WA | 15ms | 9164kb | Python3 | 196b | 2023-09-25 22:45:17 | 2023-09-25 22:45:17 |
Judging History
answer
import math
def factorial(n):
res = 1
for i in range(1, n+1):
res = res * i % 998244353
return res
n = int(input())
ans = (factorial(n) ** 2) % 998244353
print(ans)
詳細信息
Test #1:
score: 100
Accepted
time: 15ms
memory: 9076kb
input:
1
output:
1
result:
ok 1 number(s): "1"
Test #2:
score: -100
Wrong Answer
time: 10ms
memory: 9164kb
input:
2
output:
4
result:
wrong answer 1st numbers differ - expected: '1', found: '4'