문제
Bessie knows in advance that the train has
Bessie has picked out an integer
The train is soon arriving! Help Bessie find the
void helpBessie(int ID);Your implementation of the $\texttt{helpBessie}$ function will be able to call these functions:
int get(int index): gets the value of the integer stored at the given index of Bessie's notebook.
void set(int index, int value): sets the integer at the given index to the given value.
void shoutMinimum(int output): instructs Bessie to moo the given number to the skies.
int getTrainLength(): returns $N$, the number of train carriages.
int getCurrentCarIndex(): returns the index of the train carriage which is currently passing by.
Problem credits: Dhruv Rohatgi
예제
10 3
5 7 9 2 0 1 7 4 3 6
5
2
0
0
0
1
3
3