QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#721369#9536. Athlete Welcome Ceremonyucup-team2818#WA 1111ms156116kbC++146.2kb2024-11-07 15:58:022024-11-07 15:58:04

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 454ms
memory: 84296kb

input:

6 3
a?b??c
2 2 2
1 1 1
1 0 2

output:

3
1
1

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 233ms
memory: 82240kb

input:

6 3
??????
2 2 2
2 3 3
3 3 3

output:

30
72
96

result:

ok 3 lines

Test #3:

score: 0
Accepted
time: 221ms
memory: 59572kb

input:

1 1
?
0 1 1

output:

2

result:

ok single line: '2'

Test #4:

score: 0
Accepted
time: 227ms
memory: 96320kb

input:

10 10
acab?cbaca
0 2 0
1 1 2
4 2 3
1 1 1
3 5 1
0 5 2
2 2 0
1 2 5
4 3 0
1 1 3

output:

0
1
1
1
1
0
1
1
1
1

result:

ok 10 lines

Test #5:

score: 0
Accepted
time: 894ms
memory: 100676kb

input:

10 10
?c?c?cbac?
10 5 1
5 8 7
9 2 6
5 7 1
5 2 6
5 6 5
5 10 3
9 1 10
2 5 9
1 2 9

output:

16
16
11
16
11
16
16
5
11
0

result:

ok 10 lines

Test #6:

score: -100
Wrong Answer
time: 1111ms
memory: 156116kb

input:

50 100
?abacbacab?cbcbcb?acabcbabcbcacbababc?caba?acacbca
8 3 8
2 4 8
8 7 3
0 9 2
10 8 7
7 6 5
4 10 2
6 9 3
3 6 6
9 10 8
2 5 8
8 1 0
3 5 0
1 0 6
5 0 8
6 5 5
1 7 9
7 7 10
4 7 5
6 6 4
10 1 2
4 1 7
10 0 8
7 6 3
1 9 1
4 7 2
8 4 0
8 6 1
5 10 4
5 8 2
5 8 4
4 5 9
5 2 1
1 10 9
4 10 1
8 4 3
8 9 9
8 0 1
0 8 0...

output:

8
8
8
0
8
8
8
8
8
8
8
0
4
0
1
8
4
8
8
8
3
4
1
8
1
8
8
8
8
8
8
8
4
4
8
8
8
0
0
8
8
0
8
8
8
4
8
8
8
8
8
0
0
4
8
8
1
8
7
8
7
0
8
8
8
0
4
7
8
4
0
8
0
4
8
8
8
7
8
4
7
8
8
8
8
0
8
3
8
8
8
4
4
3
8
8
8
8
1
4

result:

wrong answer 7th lines differ - expected: '6', found: '8'