QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#67885#5228. Alphabet AdventuringflowerAC ✓5455ms143656kbC++204.2kb2022-12-12 21:37:072022-12-12 21:38:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 5455ms
memory: 143656kb

input:

20
7
6 7 W
5 3 H
3 1 J
3 2 I
6 3 B
4 3 C
12
2 4 5 HBCJIW
2 1 4 JICWBH
2 6 2 JHWBCI
1 2 J
2 1 3 WHJICB
2 7 5 WJCBHI
2 7 5 IHWCJB
2 7 3 WCHIBJ
2 4 2 HJBWCI
1 1 K
2 7 6 WHIJKBC
2 2 3 BWKHJIC
13
2 7 P
13 5 E
12 11 K
2 13 R
2 11 S
6 1 Y
13 3 T
6 13 A
4 3 I
7 9 Z
8 5 S
11 10 A
35
2 7 8 ASPTIZYREK
2 11 6 I...

output:

Case #1: 5 2 7 5 1 8 4 5 5 8 
Case #2: 10 9 4 8 10 1 1 9 8 1 9 4 4 13 1 16 13 17 13 15 1 12 1 20 7 1 19 14 
Case #3: 30 7 23 20 28 20 31 2 2 12 2 2 
Case #4: 9 20 35 25 4 3 36 6 2 29 55 18 20 21 18 21 20 31 17 50 25 14 29 50 48 47 51 51 5 55 55 44 6 21 35 
Case #5: 24 57 56 61 34 17 21 64 40 17 31 2...

result:

ok 20 lines