QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#188537#6736. Alice and BobguichenWA 15ms9164kbPython3196b2023-09-25 22:45:172023-09-25 22:45:17

Judging History

你现在查看的是最新测评结果

  • [2023-09-25 22:45:17]
  • 评测
  • 测评结果:WA
  • 用时:15ms
  • 内存:9164kb
  • [2023-09-25 22:45:17]
  • 提交

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'