Question #205490

for this code

input:

4

0 5

1 0

2 10

3 6

4

0 -5

1 0

2 -10

3 -6

output:

(nothing)

expected output:

Expert's answer

```
sum = 0
n = int(input())
p = [0] * n;
for i in range(n):
a, b = map(int, input().split())
p[a] = b;
sum = sum + b
m = int(input())
q = [0] * m
for j in range(m);
a, b = map(int, input().split())
q[a] = b
sum = sum + b
print(sum)
```

Learn more about our help with Assignments: Python

## Comments

## Leave a comment