QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#723311 | #2056. Buddy Numbers | TheZone | AC ✓ | 0ms | 1524kb | C++20 | 222b | 2024-11-07 21:47:23 | 2024-11-07 21:47:28 |
Judging History
answer
#include <cstdio>
main(){int n;scanf("%d",&n);switch(n){case 1:puts("1");break;case 2:puts("1 2");break;case 3:puts("3 1 2");break;case 4:puts("3 1 2 4");break;case 6:puts("5 1 3 6 2 4");break;default:puts("-1"); break;}}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 1388kb
input:
2
output:
1 2
result:
ok answer is OK
Test #2:
score: 0
Accepted
time: 0ms
memory: 1348kb
input:
3
output:
3 1 2
result:
ok answer is OK
Test #3:
score: 0
Accepted
time: 0ms
memory: 1500kb
input:
1
output:
1
result:
ok answer is OK
Test #4:
score: 0
Accepted
time: 0ms
memory: 1508kb
input:
4
output:
3 1 2 4
result:
ok answer is OK
Test #5:
score: 0
Accepted
time: 0ms
memory: 1476kb
input:
5
output:
-1
result:
ok answer is OK
Test #6:
score: 0
Accepted
time: 0ms
memory: 1524kb
input:
6
output:
5 1 3 6 2 4
result:
ok answer is OK
Test #7:
score: 0
Accepted
time: 0ms
memory: 1500kb
input:
7
output:
-1
result:
ok answer is OK
Test #8:
score: 0
Accepted
time: 0ms
memory: 1480kb
input:
8
output:
-1
result:
ok answer is OK
Test #9:
score: 0
Accepted
time: 0ms
memory: 1516kb
input:
9
output:
-1
result:
ok answer is OK
Test #10:
score: 0
Accepted
time: 0ms
memory: 1420kb
input:
10
output:
-1
result:
ok answer is OK
Test #11:
score: 0
Accepted
time: 0ms
memory: 1420kb
input:
11
output:
-1
result:
ok answer is OK
Test #12:
score: 0
Accepted
time: 0ms
memory: 1336kb
input:
12
output:
-1
result:
ok answer is OK
Test #13:
score: 0
Accepted
time: 0ms
memory: 1356kb
input:
13
output:
-1
result:
ok answer is OK
Test #14:
score: 0
Accepted
time: 0ms
memory: 1480kb
input:
14
output:
-1
result:
ok answer is OK
Test #15:
score: 0
Accepted
time: 0ms
memory: 1400kb
input:
15
output:
-1
result:
ok answer is OK
Test #16:
score: 0
Accepted
time: 0ms
memory: 1352kb
input:
16
output:
-1
result:
ok answer is OK
Test #17:
score: 0
Accepted
time: 0ms
memory: 1356kb
input:
17
output:
-1
result:
ok answer is OK
Test #18:
score: 0
Accepted
time: 0ms
memory: 1476kb
input:
18
output:
-1
result:
ok answer is OK
Test #19:
score: 0
Accepted
time: 0ms
memory: 1516kb
input:
19
output:
-1
result:
ok answer is OK
Test #20:
score: 0
Accepted
time: 0ms
memory: 1476kb
input:
20
output:
-1
result:
ok answer is OK
Test #21:
score: 0
Accepted
time: 0ms
memory: 1348kb
input:
30
output:
-1
result:
ok answer is OK
Test #22:
score: 0
Accepted
time: 0ms
memory: 1344kb
input:
100
output:
-1
result:
ok answer is OK
Test #23:
score: 0
Accepted
time: 0ms
memory: 1484kb
input:
288
output:
-1
result:
ok answer is OK
Test #24:
score: 0
Accepted
time: 0ms
memory: 1336kb
input:
666
output:
-1
result:
ok answer is OK
Test #25:
score: 0
Accepted
time: 0ms
memory: 1344kb
input:
1000
output:
-1
result:
ok answer is OK