Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
Welcome to the library management system, please type your commands. > buk1 added to the system. > Unknown command! > Unknown command! > Unknown command! > buk12 added to the system. > Unknown command! > Unknown command! > Unknown command! > buk123 added to the system. > Unknown command! > Unknown command! > Unknown command! > buk1 added to the system. > Unknown command! > Unknown command! > Unknown command! > buk5 added to the system. > Unknown command! > Unknown command! > Unknown command! > name1 added to the system. > Unknown command! > Unknown command! > Unknown command! > name2 added to the system. > Unknown command! > Unknown command! > Unknown command! > name3 added to the system. > Unknown command! > Unknown command! > Unknown command! > 1 buk1 on shelf 12 buk12 on shelf 123 buk123 on shelf 1234 buk1 on shelf 12345 buk5 on shelf > Unknown command! > Unknown command! > Unknown command! > 1 name1 22 name2 333 name3 > Unknown command! > Unknown command! > Unknown command! > 123 buk123 on shelf > Unknown
JOJ Answer
Welcome to the library management system, please type your commands. > buk1 added to the system. > Unknown command! > buk12 added to the system. > Unknown command! > buk123 added to the system. > Unknown command! > buk1 added to the system. > Unknown command! > buk5 added to the system. > Unknown command! > name1 added to the system. > Unknown command! > name2 added to the system. > Unknown command! > name3 added to the system. > Unknown command! > 0001 buk1 on shelf 0012 buk12 on shelf 0123 buk123 on shelf 1234 buk1 on shelf 12345 buk5 on shelf > Unknown command! > 0001 name1 0022 name2 0333 name3 > Unknown command! > 0123 buk123 on shelf > Unknown command! > 0001 buk1 on shelf 1234 buk1 on shelf > Unknown command! > Success! buk12 is borrowed by name1. > Unknown command! > Fail! The book was borrowed by another customer. > Unknown command! > Fail! The book was borrowed by another customer. > Unknown command! > 0001 buk1 on shelf 1234 buk1 on shelf > 0012 buk12 borrowed > 0123 buk123 on shelf > Success! buk1