$N \ Q$ $a_1 \ b_1$ $a_2 \ b_2$ $ : \ : $ $a_Q \ b_Q$
9 3 5 11 8 4 4 7
4 4 4 4 2 2 1 1 0The change of the number of dishes of sushi have eaten is following:
Customer 1 | Customer 2 | Customer 3 | Customer 4 | Customer 5 | Customer 6 | Customer 7 | Customer 8 | Customer 9 | |
1st Operation | 3 | 2 | 2 | 2 | 2 | 0 | 0 | 0 | 0 |
2nd Operation | 3 | 2 | 2 | 2 | 2 | 2 | 1 | 1 | 0 |
3rd Operation | 4 | 4 | 4 | 4 | 2 | 2 | 1 | 1 | 0 |
6 6 3 5 6 11 1 6 4 7 5 2 2 5
10 10 5 5 4 2
5 6 1 1 2 1 3 1 1 1 5 1 3 1
2 2 1 1 0
10 10 10 10 9 20 8 30 7 40 6 50 5 60 4 70 3 80 2 90 1 100
223 123 77 50 33 21 12 7 3 1