QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#271090#7686. The Phantom Menaceucup-team1137TL 44ms261260kbC++203.4kb2023-12-01 22:43:552023-12-01 22:43:55

详细

Test #1:

score: 100
Accepted
time: 44ms
memory: 261260kb

input:

2
3 3
abc
ghi
def
bcd
efg
hia
1 3
abc
def

output:

1 3 2 
1 2 3 
-1

result:

ok 2 cases (2 test cases)

Test #2:

score: -100
Time Limit Exceeded

input:

1000000
1 1
b
b
1 1
a
b
1 1
b
a
1 1
a
a
1 1
b
b
1 1
a
b
1 1
b
a
1 1
a
a
1 1
b
b
1 1
a
b
1 1
b
a
1 1
a
a
1 1
b
b
1 1
a
b
1 1
b
a
1 1
a
a
1 1
b
b
1 1
a
b
1 1
b
a
1 1
a
a
1 1
b
b
1 1
a
b
1 1
b
a
1 1
a
a
1 1
b
b
1 1
a
b
1 1
b
a
1 1
a
a
1 1
b
b
1 1
a
b
1 1
b
a
1 1
a
a
1 1
b
b
1 1
a
b
1 1
b
a
1 1
a
a
1 1
...

output:

1 
1 
-1
-1
1 2 
1 0 
1 1 2 
1 1 0 
-1
-1
1 1 2 2 
1 1 0 0 
1 1 1 2 2 
1 1 1 0 0 
-1
-1
1 1 1 2 2 2 
1 1 1 0 0 0 
1 1 1 1 2 2 2 
1 1 1 1 0 0 0 
-1
-1
1 1 1 1 2 2 2 2 
1 1 1 1 0 0 0 0 
1 1 1 1 1 2 2 2 2 
1 1 1 1 1 0 0 0 0 
-1
-1
1 1 1 1 1 2 2 2 2 2 
1 1 1 1 1 0 0 0 0 0 
1 1 1 1 1 1 2 2 2 2 2 
1 1 1 1...

result: