And Query
Time limit1sMemory limit512 MB
The statement gives only query counts and the labels 1 and 2, with no description of what update or print do, so no solution can be derived.
- Level
Medium7 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Write a program that performs the following queries.
1: update.2: print.
Input
The first line gives the number of queries . ()
Each of the next lines contains one query.
Output
For each query, print the answer on its own line.