QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#139600 | #2056. Buddy Numbers | As3b_team_f_masr# | AC ✓ | 1ms | 3620kb | C++14 | 530b | 2023-08-14 01:03:45 | 2023-08-14 01:03:47 |
Judging History
answer
#include <bits/stdc++.h>
#define F first
#define S second
#define ld long double
#define EPS 1e-9
using namespace std;
typedef long long ll;
const int N = 10000;
int a[N];
int main ()
{
//ios::sync_with_stdio(false);
//cin.tie(0);
//cout.tie(0);
//freopen("wigz.in","r",stdin);
int n;
cin >> n;
if(n == 1) cout << 1 ;
else if(n == 2) cout << "1 2";
else if(n == 3) cout << "3 1 2";
else if(n == 4) cout << "3 1 2 4";
else if(n == 6) cout << "5 1 4 2 6 3";
else cout << -1;
return(0);
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3336kb
input:
2
output:
1 2
result:
ok answer is OK
Test #2:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
3
output:
3 1 2
result:
ok answer is OK
Test #3:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
1
output:
1
result:
ok answer is OK
Test #4:
score: 0
Accepted
time: 1ms
memory: 3340kb
input:
4
output:
3 1 2 4
result:
ok answer is OK
Test #5:
score: 0
Accepted
time: 1ms
memory: 3440kb
input:
5
output:
-1
result:
ok answer is OK
Test #6:
score: 0
Accepted
time: 1ms
memory: 3444kb
input:
6
output:
5 1 4 2 6 3
result:
ok answer is OK
Test #7:
score: 0
Accepted
time: 1ms
memory: 3404kb
input:
7
output:
-1
result:
ok answer is OK
Test #8:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
8
output:
-1
result:
ok answer is OK
Test #9:
score: 0
Accepted
time: 1ms
memory: 3396kb
input:
9
output:
-1
result:
ok answer is OK
Test #10:
score: 0
Accepted
time: 1ms
memory: 3328kb
input:
10
output:
-1
result:
ok answer is OK
Test #11:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
11
output:
-1
result:
ok answer is OK
Test #12:
score: 0
Accepted
time: 0ms
memory: 3440kb
input:
12
output:
-1
result:
ok answer is OK
Test #13:
score: 0
Accepted
time: 1ms
memory: 3400kb
input:
13
output:
-1
result:
ok answer is OK
Test #14:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
14
output:
-1
result:
ok answer is OK
Test #15:
score: 0
Accepted
time: 1ms
memory: 3388kb
input:
15
output:
-1
result:
ok answer is OK
Test #16:
score: 0
Accepted
time: 1ms
memory: 3392kb
input:
16
output:
-1
result:
ok answer is OK
Test #17:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
17
output:
-1
result:
ok answer is OK
Test #18:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
18
output:
-1
result:
ok answer is OK
Test #19:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
19
output:
-1
result:
ok answer is OK
Test #20:
score: 0
Accepted
time: 0ms
memory: 3384kb
input:
20
output:
-1
result:
ok answer is OK
Test #21:
score: 0
Accepted
time: 0ms
memory: 3392kb
input:
30
output:
-1
result:
ok answer is OK
Test #22:
score: 0
Accepted
time: 1ms
memory: 3332kb
input:
100
output:
-1
result:
ok answer is OK
Test #23:
score: 0
Accepted
time: 1ms
memory: 3400kb
input:
288
output:
-1
result:
ok answer is OK
Test #24:
score: 0
Accepted
time: 1ms
memory: 3336kb
input:
666
output:
-1
result:
ok answer is OK
Test #25:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
1000
output:
-1
result:
ok answer is OK