The Y Bus Goes Vroom
InterviewTime limit2sMemory limit256 MB
Simulate the passenger count as a bus travels N stops with given boarding and alighting numbers, then print the driver's fixed name.
- Level
Easy1 of 10
- Topics
- Simulation, Implementation, Math
- Solved
- No attempts yet
Problem
The bus that driver 비와이 drives leaves the first station, passes stops, and arrives at the last station. Each stop has a fixed number of people who get off and a fixed number who get on. At the last station everyone still on the bus gets off.
Input
The first line has the number of stops between the first and the last station, (), and the number of people who board at the first station, ().
Each of the next lines has the number of people who board at the -th stop, , and the number of people who get off there, ().
Output
Print the name of the bus driver at the moment the bus reaches the last station, on one line. Write the name in Hangul, exactly 비와이.