QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#76605#1979. GratitudeMaMengQiTL 306ms23176kbPython3166b2023-02-10 22:01:442023-02-10 22:01:46

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 8416kb

input:

1 1
C
B
A

output:

A

result:

ok single line: 'A'

Test #2:

score: 0
Accepted
time: 11ms
memory: 8324kb

input:

1 2
C
B
A

output:

A
B

result:

ok 2 lines

Test #3:

score: 0
Accepted
time: 15ms
memory: 8504kb

input:

1 3
C
B
A

output:

A
B
C

result:

ok 3 lines

Test #4:

score: 0
Accepted
time: 11ms
memory: 8424kb

input:

3 1
C
B
A
A
B
C
A
B
C

output:

C

result:

ok single line: 'C'

Test #5:

score: 0
Accepted
time: 13ms
memory: 8332kb

input:

3 3
C
B
A
A
B
C
A
B
C

output:

C
B
A

result:

ok 3 lines

Test #6:

score: 0
Accepted
time: 16ms
memory: 8424kb

input:

3 8
C
B
A
A
B
C
A
B
C

output:

C
B
A

result:

ok 3 lines

Test #7:

score: 0
Accepted
time: 6ms
memory: 8460kb

input:

2 3
q
w
e
r
t
y

output:

y
t
r

result:

ok 3 lines

Test #8:

score: 0
Accepted
time: 14ms
memory: 8412kb

input:

2 6
q
w
e
r
t
y

output:

y
t
r
e
w
q

result:

ok 6 lines

Test #9:

score: 0
Accepted
time: 20ms
memory: 8420kb

input:

3 2
A
B
C
B
C
D
C
D
E

output:

C
D

result:

ok 2 lines

Test #10:

score: 0
Accepted
time: 11ms
memory: 8464kb

input:

3 3
A
B
C
B
C
D
C
D
E

output:

C
D
B

result:

ok 3 lines

Test #11:

score: 0
Accepted
time: 14ms
memory: 8504kb

input:

3 5
A
B
C
B
C
D
C
D
E

output:

C
D
B
E
A

result:

ok 5 lines

Test #12:

score: 0
Accepted
time: 6ms
memory: 8428kb

input:

3 9
A
B
C
B
C
D
C
D
E

output:

C
D
B
E
A

result:

ok 5 lines

Test #13:

score: 0
Accepted
time: 306ms
memory: 23176kb

input:

33333 99999
21336
54674
65180
6629
63120
30823
92163
80025
50174
67734
879
35964
53935
12142
17604
60250
43015
30063
51541
40979
35454
6328
58642
78108
19028
78847
22766
73250
38610
89274
33675
12046
13983
75354
11269
75620
50011
49208
37912
54086
57755
22472
81134
44117
68226
40713
61097
56983
6639...

output:

19042
92712
60795
76384
24499
43145
12945
3376
7656
15306
79532
22
69151
61515
71569
5130
5795
89216
15511
80114
71141
82394
91849
46552
46246
29443
42195
6044
49931
19323
37134
78803
92422
4353
9070
7773
94490
35583
70515
89667
61457
46601
68936
9004
70491
50484
21666
9155
55315
76935
30732
90162
3...

result:

ok 63322 lines

Test #14:

score: 0
Accepted
time: 225ms
memory: 15668kb

input:

33333 99999
4
74
78
55
8
25
15
6
72
38
82
45
54
56
52
13
2
52
41
71
18
35
78
13
21
52
7
26
40
0
15
41
77
0
43
15
16
40
0
79
19
59
56
94
84
26
73
40
51
94
90
89
75
39
67
63
23
30
84
21
50
12
61
61
74
55
1
16
59
82
33
66
56
78
9
9
88
60
26
50
58
84
39
82
10
71
50
44
36
72
5
29
32
73
95
86
5
64
17
38
5...

output:

26
81
82
58
13
16
77
73
61
66
50
87
69
92
95
96
59
0
43
24
86
1
40
63
54
38
85
27
44
37
28
97
10
29
14
64
4
18
75
79
9
3
89
12
19
41
39
48
49
74
55
56
34
67
83
52
30
7
88
84
15
78
51
5
57
6
45
99
91
62
22
8
93
70
20
90
21
72
17
47
46
31
32
33
25
94
68
2
71
23
11
42
76
36
80
65
60
35
98
53

result:

ok 100 lines

Test #15:

score: -100
Time Limit Exceeded

input:

33333 99999
0
1
2
2
1
0
2
1
0
1
2
0
0
1
2
0
2
1
1
2
0
0
2
1
2
0
1
2
1
0
1
0
2
0
2
1
1
0
2
1
2
0
2
0
1
0
2
1
2
1
0
1
2
0
0
2
1
2
1
0
0
2
1
0
2
1
2
1
0
0
1
2
0
1
2
0
1
2
2
1
0
2
0
1
0
1
2
0
2
1
2
1
0
0
1
2
0
2
1
0
2
1
0
2
1
2
1
0
0
2
1
0
2
1
2
1
0
2
1
0
2
0
1
1
2
0
2
0
1
0
1
2
0
2
1
2
1
0
2
0
1
0
2
1
...

output:


result: