ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2002. Test Task

WA 3
Posted by FBI 9 Nov 2013 16:21
test 3 ??? help me please
Re: WA 3
Posted by Phillip Chelemer 9 Nov 2013 16:48
Runtime error?
Re: WA 3
Posted by FBI 9 Nov 2013 16:55
Wrong A ! test 3
Re: WA 3
Posted by Muzaffardjan Karaev 9 Nov 2013 17:06
please can anyone tell me what is the test of 3.
Re: WA 3
Posted by KOTMAKRUS 10 Nov 2013 02:09
register user1 1
success: new user added
register user2 2
success: new user added
register user3 3
success: new user added
logout user2
fail: already logged out
login user1 3
fail: incorrect password
login user2 2
success: user logged in
logout user3
fail: already logged out

note the last line
Re: WA 3
Posted by Gleb_Kazantaev(NNSTU) 5 Jan 2014 16:03
Try this:

4
register a 1
register a 2
register a 3
register a 4
Re: WA 3
Posted by Mescheryakov_Kirill 26 Mar 2014 15:54
And that the last line is not so? Like everything correctly.
Re: WA 3
Posted by BillSu 28 Apr 2014 12:22
It is easy. Just if else and use map, and define a new data structure, and there you go, all done.
Re: WA 3
Posted by velenhaupt 6 Feb 2015 22:25
you may have problem with double login:

register v 1
success: new user added
login v 1
success: user logged in
login v 1
fail: already logged in
Re: WA 3
Posted by Grandmaster 29 Mar 2015 15:21
2
register x y
register x y


Out
success: new user added
fail: user already exists
Re: WA 3
Posted by SLHUNG 14 Apr 2015 10:47
Try this!

input:
3
register a 1
login a 1
login a 2

output:
success: new user added
success: user logged in
fail: incorrect password


NOTE!
Login with wrong pw should output "fail: incorrect password" instead of "fail: already logged in".
Re: WA 3
Posted by Sanatbek_Matlatipov 1 Sep 2015 11:56
Great. I didn't notice that.
Re: WA 3
Posted by Adkham_Acm 15 Oct 2018 20:12
Thanks! accepted
Re: WA 3
Posted by wnik 26 Nov 2020 15:42
thx it is wery help full