-
-
-
-
-
-
-
-
-
Your friend, Jackson is invited to a TV show called SuperMemo in
which the participant is told to play a memorizing game. At first,
the host tells the participant a sequence of numbers, {A
1, A
2, ... An
}. Then the host performs a series of operations and queries on
the sequence which consists:
ADD x y D: Add D to each number in sub-sequence {Ax
... Ay
}. For example, performing "ADD 2 4 1" on {1,
2, 3, 4, 5} results in {1, 3, 4, 5, 5}
REVERSE x y: reverse the sub-sequ ...
阅读题目
问答题
经典指数
-