QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#293730#1364. Condorcetlmq26052003RE 0ms3852kbC++206.1kb2023-12-29 17:11:192023-12-29 17:11:20

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3792kb

input:

3 3
ABC 1
BCA 1
CAB 1

output:

0

result:

ok single line: '0'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3708kb

input:

3 6
CAB 35
ACB 142
ABC 34
BCA 66
CBA 53
BAC 44

output:

49

result:

ok single line: '49'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3704kb

input:

3 6
BCA 41
ABC 103
ACB 49
BAC 79
CAB 52
CBA 57

output:

66

result:

ok single line: '66'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3852kb

input:

3 6
CBA 49
BAC 50
ABC 64
ACB 98
BCA 35
CAB 70

output:

69

result:

ok single line: '69'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3744kb

input:

3 5
BCA 102
BAC 89
ACB 77
CAB 43
ABC 69

output:

91

result:

ok single line: '91'

Test #6:

score: -100
Runtime Error

input:

5 120
DEABC 125
DACBE 207
DABCE 167
BCDEA 186
BCEDA 118
AEBDC 175
CDBEA 252
CDEBA 208
ABCED 131
ADEBC 114
ABECD 132
CDAEB 365
BEADC 162
BEDAC 169
ECDBA 242
ECDAB 137
CEADB 215
EBDAC 179
EBADC 222
DABEC 248
EDBAC 177
DBEAC 207
EDACB 157
ECABD 67
DCBEA 143
BDECA 174
DACEB 195
AECDB 242
ABCDE 156
CABDE...

output:


result: