QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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)
Details
Tip: Click on the bar to expand more detailed information
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'