QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#404859#6736. Alice and Bob20232501479WA 0ms3584kbC++14305b2024-05-04 20:42:302024-05-04 20:42:31

Judging History

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

  • [2024-05-04 20:42:31]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3584kb
  • [2024-05-04 20:42:30]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define int long long
const int P=998244353;
int f[10010000],n;
signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cin>>n;
    f[0]=1;
    for(int i=1;i<=n+1;i++)
    f[i]=f[i-1]*i%P;
    
    cout<<f[n+1]/(n*(n/2-1))<<endl;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3584kb

input:

1

output:

-2

result:

wrong answer 1st numbers differ - expected: '1', found: '-2'