QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#342881#8061. Add or Multiplylmq26052003WA 685ms4464kbC++203.0kb2024-03-01 19:07:192024-03-01 19:07:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 4232kb

input:

3 4
2+3*4
s 1 2
a
f 2
a

output:

14
11
10
24
9

result:

ok 5 lines

Test #2:

score: 0
Accepted
time: 4ms
memory: 4268kb

input:

15 11
8*5*5*5*8*5*5*5*8*5*5*5+1+2+3
f 14
s 15 15
s 1 1
s 15 1
s 1 15
f 13
f 1
a
f 1
f 12
a

output:

1000000006
0
0
0
375000017
0
1000000006
125000014
101
74
75
999999965

result:

ok 12 lines

Test #3:

score: -100
Wrong Answer
time: 685ms
memory: 4464kb

input:

200000 200000
3*5*6*3*7*3*4*7*2*9*2*7*5*9*2*9*5*4*6*3*7*2*8*6*6*8*4*2*4*5*5*8*9*4*9*2*7*5*4*3*9*4*8*5*5*6*5*3*8*5*9*2*7*8*8*6*7*6*6*5*7*8*3*7*3*5*9*3*7*5*6*8*2*5*6*5*2*9*7*8*7*4*9*3*9*5*4*5*4*3*4*4*9*6*4*5*4*8*9*8*5*9*9*9*8*6*9*6*5*8*5*5*6*9*2*6*9*6*5*4*7*6*5*4*8*3*5*8*5*5*5*7*4*2*4*8*2*5*6*3*9*7*5*...

output:

0
484673093
1099983
1099976
0
7
1099999
1099976
0
578869365
1099979
1099976
0
742132270
1100003
1099976
0
129232264
1100005
1099976
0
80773170
1100017
1099976
0
362800830
1099999
1099976
0
549890253
1099993
1099976
0
242869091
1099987
1099976
0
742069556
1099987
1099976
0
47531286
1099982
1099976
0
...

result:

wrong answer 1st lines differ - expected: '454019263', found: '0'