2024软院ACM筛选赛验题

# = A B C D E F G H I
# = 2
5
0
0
1
4
0
0
3
4
1
2
1
1
4
7
1
12