QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#97021#3614. Math TradeMaMengQiWA 2ms3324kbC++141.3kb2023-04-16 14:37:372023-04-16 14:37:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3304kb

input:

4
Sally Clock Doll
Steve Doll Painting
Carlos Painting Clock
Maria Candlestick Vase

output:

3

result:

ok single line: '3'

Test #2:

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

input:

4
Abby Bottlecap Card
Bob Card Spoon
Chris Spoon Chair
Dan Pencil Pen

output:

No trades possible

result:

ok single line: 'No trades possible'

Test #3:

score: 0
Accepted
time: 1ms
memory: 3324kb

input:

10
P0 I0 I0X
P1 I1 I2
P2 I2 I9
P3 I3 I7
P4 I4 I6
P5 I5 I3
P6 I6 I1
P7 I7 I8
P8 I8 I5
P9 I9 I4

output:

5

result:

ok single line: '5'

Test #4:

score: 0
Accepted
time: 2ms
memory: 3276kb

input:

50
P0 I0 I13
P1 I1 I1X
P2 I2 I48
P3 I3 I41
P4 I4 I22
P5 I5 I10
P6 I6 I2
P7 I7 I35
P8 I8 I15
P9 I9 I12
P10 I10 I5
P11 I11 I49
P12 I12 I0
P13 I13 I32
P14 I14 I37
P15 I15 I16
P16 I16 I28
P17 I17 I40
P18 I18 I23
P19 I19 I4
P20 I20 I14
P21 I21 I3
P22 I22 I46
P23 I23 I8
P24 I24 I18
P25 I25 I19
P26 I26 I26...

output:

45

result:

ok single line: '45'

Test #5:

score: -100
Wrong Answer
time: 0ms
memory: 3308kb

input:

50
P0 I0 I0X
P1 I1 I33
P2 I2 I24
P3 I3 I25
P4 I4 I9
P5 I5 I38
P6 I6 I26
P7 I7 I20
P8 I8 I8X
P9 I9 I42
P10 I10 I18
P11 I11 I30
P12 I12 I34
P13 I13 I32
P14 I14 I21
P15 I15 I28
P16 I16 I15
P17 I17 I47
P18 I18 I13
P19 I19 I37
P20 I20 I6
P21 I21 I5
P22 I22 I16
P23 I23 I41
P24 I24 I10
P25 I25 I19
P26 I26 ...

output:

64

result:

wrong answer 1st lines differ - expected: '17', found: '64'