NP48. 验证登录名与密码
描述
输入描述
输出描述
登录成功输出"Welcome!",登录失败输出"user id or password is not correct!"示例1
输入:
admis Nowcoder666
输出:
Welcome!
Python 解法, 执行用时: 11ms, 内存消耗: 2984KB, 提交时间: 2022-07-27
a = raw_input() b =raw_input() if a == 'admis' and b == 'Nowcoder666': print ("Welcome!") else: print("user id or password is not correct!")
Python 3 解法, 执行用时: 28ms, 内存消耗: 4460KB, 提交时间: 2022-07-27
user_name=input() pwd=input() if user_name=='admis': if pwd=='Nowcoder666': print("Welcome!") else: print("user id or password is not correct!") else: print("user id or password is not correct!")
Python 3 解法, 执行用时: 28ms, 内存消耗: 4464KB, 提交时间: 2022-08-05
name = input() password = input() if name == 'admis' and password == 'Nowcoder666': print('Welcome!') else: print('user id or password is not correct!')
Python 3 解法, 执行用时: 28ms, 内存消耗: 4504KB, 提交时间: 2022-08-01
username = input() password = input() if username == "admis" and password == "Nowcoder666": print("Welcome!") else: print("user id or password is not correct!")
Python 3 解法, 执行用时: 28ms, 内存消耗: 4600KB, 提交时间: 2022-08-01
user=input() password=input() name='admis' m_password='Nowcoder666' if user==name and password==m_password: print('Welcome!') else: print('user id or password is not correct!')