B. Queue
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
During the lunch break all n Berland State University students lined up in the food court. However, it turned out that the food court, too, has a lunch break and it temporarily stopped working.
Standing in a queue that isn't being served is so boring! So, each of the students wrote down the number of the student ID of the student that stands in line directly in ......
阅读全文