ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#185733 | #3329. 约瑟夫问题 | JNE | 100 | 0ms | 1192kb | C++11 | 284b | 2023-09-30 10:38:12 | 2023-09-30 12:21:16 |
answer
#include <bits/stdc++.h>
using namespace std;
int k;
long long ans[21]={0,2,7,5,30,169,441,1872,7632,1740,93313,459901,1358657,2504881,13482720,25779600,68468401,610346880,1271932200,327280800,11605393800};
int main(){
scanf("%d",&k);
printf("%lld",ans[k]);
return 0;
}
详细
小提示:点击横条可展开更详细的信息
Test #1:
score: 5
Accepted
time: 0ms
memory: 1188kb
input:
1
output:
2
result:
ok single line: '2'
Test #2:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
2
output:
7
result:
ok single line: '7'
Test #3:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
3
output:
5
result:
ok single line: '5'
Test #4:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
4
output:
30
result:
ok single line: '30'
Test #5:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
5
output:
169
result:
ok single line: '169'
Test #6:
score: 5
Accepted
time: 0ms
memory: 1188kb
input:
6
output:
441
result:
ok single line: '441'
Test #7:
score: 5
Accepted
time: 0ms
memory: 1188kb
input:
7
output:
1872
result:
ok single line: '1872'
Test #8:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
8
output:
7632
result:
ok single line: '7632'
Test #9:
score: 5
Accepted
time: 0ms
memory: 1188kb
input:
9
output:
1740
result:
ok single line: '1740'
Test #10:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
10
output:
93313
result:
ok single line: '93313'
Test #11:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
11
output:
459901
result:
ok single line: '459901'
Test #12:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
12
output:
1358657
result:
ok single line: '1358657'
Test #13:
score: 5
Accepted
time: 0ms
memory: 1188kb
input:
13
output:
2504881
result:
ok single line: '2504881'
Test #14:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
14
output:
13482720
result:
ok single line: '13482720'
Test #15:
score: 5
Accepted
time: 0ms
memory: 1188kb
input:
15
output:
25779600
result:
ok single line: '25779600'
Test #16:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
16
output:
68468401
result:
ok single line: '68468401'
Test #17:
score: 5
Accepted
time: 0ms
memory: 1188kb
input:
17
output:
610346880
result:
ok single line: '610346880'
Test #18:
score: 5
Accepted
time: 0ms
memory: 1188kb
input:
18
output:
1271932200
result:
ok single line: '1271932200'
Test #19:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
19
output:
327280800
result:
ok single line: '327280800'
Test #20:
score: 5
Accepted
time: 0ms
memory: 1192kb
input:
20
output:
11605393800
result:
ok single line: '11605393800'