QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505633#3478. Wolfxiaowuc1AC ✓47ms39836kbJava82.2kb2024-08-05 06:33:162024-08-05 06:33:18

详细

Test #1:

score: 100
Accepted
time: 43ms
memory: 37180kb

input:

28
1 C
2 C
3 C
4 C
5 C
6 C
7 C
1 D
2 D
3 D
4 D
5 D
6 D
7 D
1 H
2 H
3 H
4 H
5 H
6 H
7 H
1 S
2 S
3 S
4 S
5 S
6 S
7 S

output:

possible

result:

ok single line: 'possible'

Test #2:

score: 0
Accepted
time: 37ms
memory: 36660kb

input:

0

output:

impossible

result:

ok single line: 'impossible'

Test #3:

score: 0
Accepted
time: 40ms
memory: 36956kb

input:

13
1 H
2 H
3 H
4 H
5 H
6 H
7 H
8 H
9 H
10 H
11 H
12 H
13 H

output:

impossible

result:

ok single line: 'impossible'

Test #4:

score: 0
Accepted
time: 38ms
memory: 36844kb

input:

13
1 S
2 S
3 S
4 S
5 S
6 S
7 S
8 S
9 S
10 S
11 S
12 S
13 S

output:

impossible

result:

ok single line: 'impossible'

Test #5:

score: 0
Accepted
time: 38ms
memory: 39320kb

input:

13
1 C
2 C
3 C
4 C
5 C
6 C
7 C
8 C
9 C
10 C
11 C
12 C
13 C

output:

impossible

result:

ok single line: 'impossible'

Test #6:

score: 0
Accepted
time: 32ms
memory: 38440kb

input:

13
1 D
2 D
3 D
4 D
5 D
6 D
7 D
8 D
9 D
10 D
11 D
12 D
13 D

output:

impossible

result:

ok single line: 'impossible'

Test #7:

score: 0
Accepted
time: 36ms
memory: 36924kb

input:

26
1 H
2 H
3 H
4 H
5 H
6 H
7 H
8 H
9 H
10 H
11 H
12 H
13 H
1 S
2 S
3 S
4 S
5 S
6 S
7 S
8 S
9 S
10 S
11 S
12 S
13 S

output:

impossible

result:

ok single line: 'impossible'

Test #8:

score: 0
Accepted
time: 39ms
memory: 38072kb

input:

26
1 C
2 C
3 C
4 C
5 C
6 C
7 C
8 C
9 C
10 C
11 C
12 C
13 C
1 D
2 D
3 D
4 D
5 D
6 D
7 D
8 D
9 D
10 D
11 D
12 D
13 D

output:

impossible

result:

ok single line: 'impossible'

Test #9:

score: 0
Accepted
time: 34ms
memory: 39600kb

input:

39
1 H
2 H
3 H
4 H
5 H
6 H
7 H
8 H
9 H
10 H
11 H
12 H
13 H
1 S
2 S
3 S
4 S
5 S
6 S
7 S
8 S
9 S
10 S
11 S
12 S
13 S
1 C
2 C
3 C
4 C
5 C
6 C
7 C
8 C
9 C
10 C
11 C
12 C
13 C

output:

possible

result:

ok single line: 'possible'

Test #10:

score: 0
Accepted
time: 39ms
memory: 39500kb

input:

39
1 D
2 D
3 D
4 D
5 D
6 D
7 D
8 D
9 D
10 D
11 D
12 D
13 D
1 C
2 C
3 C
4 C
5 C
6 C
7 C
8 C
9 C
10 C
11 C
12 C
13 C
1 H
2 H
3 H
4 H
5 H
6 H
7 H
8 H
9 H
10 H
11 H
12 H
13 H

output:

possible

result:

ok single line: 'possible'

Test #11:

score: 0
Accepted
time: 43ms
memory: 39148kb

input:

52
1 H
2 H
3 H
4 H
5 H
6 H
7 H
8 H
9 H
10 H
11 H
12 H
13 H
1 S
2 S
3 S
4 S
5 S
6 S
7 S
8 S
9 S
10 S
11 S
12 S
13 S
1 C
2 C
3 C
4 C
5 C
6 C
7 C
8 C
9 C
10 C
11 C
12 C
13 C
1 D
2 D
3 D
4 D
5 D
6 D
7 D
8 D
9 D
10 D
11 D
12 D
13 D

output:

possible

result:

ok single line: 'possible'

Test #12:

score: 0
Accepted
time: 37ms
memory: 39064kb

input:

26
13 H
13 S
7 C
11 D
8 H
5 H
3 H
9 H
11 C
4 H
5 C
12 C
6 H
1 S
3 D
3 C
11 S
10 C
5 D
6 D
7 S
10 S
4 D
12 S
7 H
2 D

output:

possible

result:

ok single line: 'possible'

Test #13:

score: 0
Accepted
time: 47ms
memory: 37076kb

input:

26
6 H
13 S
13 D
13 C
10 D
8 D
5 D
8 C
2 C
3 C
10 H
4 H
10 C
11 D
4 S
3 D
5 C
6 S
7 S
1 S
5 S
2 D
9 D
1 C
3 H
7 D

output:

possible

result:

ok single line: 'possible'

Test #14:

score: 0
Accepted
time: 37ms
memory: 37732kb

input:

26
6 C
12 H
8 D
1 S
11 S
2 C
10 D
7 D
10 H
13 C
5 S
3 S
10 C
5 C
4 H
13 S
6 S
12 S
10 S
11 C
2 S
5 D
13 D
1 C
4 C
11 H

output:

possible

result:

ok single line: 'possible'

Test #15:

score: 0
Accepted
time: 36ms
memory: 38372kb

input:

26
6 H
13 C
2 C
12 D
9 C
1 H
1 S
8 D
9 D
10 S
5 D
4 D
4 H
12 H
5 C
5 H
4 C
7 H
6 S
7 D
9 S
8 H
7 S
6 C
3 H
11 C

output:

possible

result:

ok single line: 'possible'

Test #16:

score: 0
Accepted
time: 34ms
memory: 39056kb

input:

26
1 S
2 S
3 S
1 H
2 H
1 D
1 C
2 D
3 D
4 S
2 C
3 H
5 S
3 C
4 H
6 S
4 C
5 C
4 D
5 D
6 C
5 H
6 D
7 S
7 C
7 D

output:

impossible

result:

ok single line: 'impossible'

Test #17:

score: 0
Accepted
time: 32ms
memory: 38552kb

input:

26
1 S
1 C
1 D
2 D
1 H
2 S
3 S
4 S
2 C
3 C
3 D
2 H
4 C
4 D
3 H
5 C
5 S
5 D
6 C
6 S
7 S
6 D
4 H
7 D
8 S
5 H

output:

impossible

result:

ok single line: 'impossible'

Test #18:

score: 0
Accepted
time: 41ms
memory: 38164kb

input:

26
13 C
13 S
13 H
13 D
12 S
12 D
12 H
12 C
11 H
11 C
10 H
11 S
10 C
11 D
10 S
10 D
9 S
9 C
9 H
8 S
8 C
9 D
8 H
7 S
7 C
6 S

output:

possible

result:

ok single line: 'possible'

Test #19:

score: 0
Accepted
time: 42ms
memory: 37948kb

input:

26
13 C
13 S
13 H
13 D
12 H
12 D
11 D
11 H
10 D
10 H
9 D
9 H
8 H
7 H
12 C
11 C
12 S
8 D
11 S
6 H
7 D
5 H
6 D
10 C
10 S
9 C

output:

possible

result:

ok single line: 'possible'

Test #20:

score: 0
Accepted
time: 30ms
memory: 38232kb

input:

25
1 S
1 C
1 D
2 D
1 H
2 S
3 S
4 S
2 C
3 C
3 D
2 H
4 C
4 D
3 H
5 C
5 S
5 D
6 C
6 S
7 S
6 D
4 H
7 D
8 S

output:

impossible

result:

ok single line: 'impossible'

Test #21:

score: 0
Accepted
time: 41ms
memory: 36908kb

input:

25
1 D
2 D
1 H
1 S
3 D
1 C
4 D
2 S
5 D
2 H
2 C
3 H
6 D
7 D
3 S
3 C
4 C
4 S
4 H
5 C
5 S
8 D
9 D
6 C
6 S

output:

impossible

result:

ok single line: 'impossible'

Test #22:

score: 0
Accepted
time: 33ms
memory: 36892kb

input:

25
13 D
12 D
11 D
10 D
9 D
13 C
13 H
8 D
12 H
11 H
12 C
13 S
12 S
10 H
7 D
9 H
11 S
11 C
6 D
5 D
10 C
10 S
4 D
9 S
8 H

output:

impossible

result:

ok single line: 'impossible'

Test #23:

score: 0
Accepted
time: 38ms
memory: 36528kb

input:

25
13 C
13 H
12 C
13 S
13 D
11 C
10 C
12 D
9 C
12 S
12 H
8 C
11 S
10 S
9 S
7 C
11 D
10 D
11 H
9 D
8 S
7 S
6 S
10 H
8 D

output:

impossible

result:

ok single line: 'impossible'

Test #24:

score: 0
Accepted
time: 39ms
memory: 37700kb

input:

27
1 D
1 H
1 C
2 D
2 H
3 D
1 S
4 D
2 C
2 S
3 C
3 S
3 H
4 S
5 D
6 D
4 C
4 H
5 S
5 C
6 S
6 C
5 H
7 C
6 H
8 C
7 H

output:

possible

result:

ok single line: 'possible'

Test #25:

score: 0
Accepted
time: 41ms
memory: 38448kb

input:

27
1 D
1 C
1 S
2 D
1 H
2 C
3 D
2 H
3 H
4 H
5 H
2 S
3 S
3 C
6 H
4 S
4 C
4 D
5 S
5 D
6 D
5 C
7 D
6 C
7 C
8 C
9 C

output:

possible

result:

ok single line: 'possible'

Test #26:

score: 0
Accepted
time: 36ms
memory: 39148kb

input:

27
13 D
13 H
12 D
12 H
13 C
12 C
11 D
13 S
11 C
10 C
11 H
10 D
12 S
9 C
11 S
10 H
10 S
9 H
9 D
8 D
8 C
7 C
9 S
7 D
8 H
8 S
7 S

output:

possible

result:

ok single line: 'possible'

Test #27:

score: 0
Accepted
time: 42ms
memory: 37688kb

input:

27
13 C
13 H
13 S
13 D
12 S
12 D
12 C
11 S
10 S
11 C
10 C
9 C
11 D
12 H
8 C
10 D
11 H
10 H
9 D
9 H
7 C
8 D
7 D
6 C
9 S
5 C
8 S

output:

possible

result:

ok single line: 'possible'

Test #28:

score: 0
Accepted
time: 39ms
memory: 37100kb

input:

27
1 H
11 H
7 H
10 H
8 S
5 C
12 C
4 D
3 H
7 D
2 H
1 S
13 H
4 H
5 D
4 S
10 C
6 D
3 D
6 S
3 C
13 S
5 S
6 C
9 S
9 H
7 S

output:

possible

result:

ok single line: 'possible'

Test #29:

score: 0
Accepted
time: 40ms
memory: 39836kb

input:

28
2 D
8 D
3 S
7 H
9 H
8 H
7 C
2 H
3 C
4 H
6 D
13 S
1 D
6 S
12 S
3 D
11 S
1 S
11 D
4 D
12 C
11 C
8 C
13 H
6 H
2 C
4 C
4 S

output:

possible

result:

ok single line: 'possible'

Test #30:

score: 0
Accepted
time: 42ms
memory: 37792kb

input:

29
8 C
12 H
4 H
13 C
1 S
1 C
9 C
2 S
7 S
8 S
10 D
13 S
10 C
5 S
2 D
7 H
6 H
11 C
13 H
9 S
7 D
9 D
8 H
3 D
5 D
5 C
2 H
11 D
3 H

output:

possible

result:

ok single line: 'possible'

Test #31:

score: 0
Accepted
time: 42ms
memory: 38000kb

input:

30
8 C
7 D
3 C
7 S
6 H
9 D
10 S
2 D
4 D
2 C
10 C
9 C
13 C
12 D
8 H
3 H
5 H
6 C
10 H
13 D
11 C
6 D
3 D
6 S
12 H
12 C
11 S
11 D
5 S
4 H

output:

possible

result:

ok single line: 'possible'