#P0018. 登录验证(提交代码题)

登录验证(提交代码题)

1. Description

We try to build a simple website login.

  • Username: "admin"
  • Password: "123456"

The login page follows rules

  • User can always input username and password
  • If the input username is not "admin", print "Account doesn't exist"
  • If the username / password combination is correct, print "Login Success"
  • If the password is incorrect, print "Incorrect password, please retry"
  • If the user makes 5 incorrect passowrd, print "Too many fails, the account is protected"
  • The user can still input when the account is protected, but everytime it will print "The account is protected, please contact customer service"

2. Submission

  • Finish your code in Lecture Note
  • Click the "递交 / Submit" button on the right,paste your code and submit
  • You can ignore the error report after submission (because the teacher didn't set auto-rating for this problem)