ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#213036 | #3823. 艾特扣德 | 18112606231 | 0 | 207ms | 1200kb | C++11 | 339b | 2024-11-03 12:54:13 | 2024-11-03 13:02:48 |
answer
#include<bits/stdc++.h>
#define int long long
#define MOD 998244353
using namespace std;
int t,n,a[1000001];
signed main(){
a[0]=1;
for(int i=1;i<=n;i++)
{
a[i]=a[i-1]*i%MOD;
}
scanf("%lld",&t);
while(t--)
{
scanf("%lld",&n);
printf("%lld\n",a[n-1]);
}
return 0;
}
详细
小提示:点击横条可展开更详细的信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 1196kb
input:
100 4 4 3 0 1 2 3 1 0 5 2 1 3 5 3 1 4 2 5 3 0 4 2 3 1 0 5 1 3 3 3 1 2 0 3 1 0 4 3 0 2 3 4 2 0 2 5 1 ...
output:
0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 ...
result:
wrong answer 1st lines differ - expected: '1', found: '0'
Test #2:
score: 0
Wrong Answer
time: 185ms
memory: 1196kb
input:
1000000 420929 1 239064 93187 1 85123 171379 1 110159 658643 1 0 303046 1 95912 800861 1 781035 9893...
output:
0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 ...
result:
wrong answer 1st lines differ - expected: '598226497', found: '0'
Test #3:
score: 0
Wrong Answer
time: 11ms
memory: 1196kb
input:
38765 832568 1 0 992725 6 548209 466528 628957 748938 0 578853 943934 15 863133 363066 513728 634152...
output:
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
wrong answer 1st lines differ - expected: '485766967', found: '0'
Test #4:
score: 0
Wrong Answer
time: 8ms
memory: 1200kb
input:
38573 988634 10 800634 876452 811249 495916 842656 695203 0 914758 757887 237251 948749 6 282623 267...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 ...
result:
wrong answer 1st lines differ - expected: '184333188', found: '0'
Test #5:
score: 0
Wrong Answer
time: 3ms
memory: 1196kb
input:
38561 996249 6 150367 424546 851150 536915 420708 392670 956743 7 858128 296060 304111 814957 936254...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
wrong answer 1st lines differ - expected: '204801326', found: '0'