ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 2002. Тестовое задание

WA 3
Послано FBI 9 ноя 2013 16:21
test 3 ??? help me please
Re: WA 3
Послано Phillip Chelemer 9 ноя 2013 16:48
Runtime error?
Re: WA 3
Послано FBI 9 ноя 2013 16:55
Wrong A ! test 3
Re: WA 3
Послано Muzaffardjan Karaev 9 ноя 2013 17:06
please can anyone tell me what is the test of 3.
Re: WA 3
Послано KOTMAKRUS 10 ноя 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
Послано Gleb_Kazantaev(NNSTU) 5 янв 2014 16:03
Try this:

4
register a 1
register a 2
register a 3
register a 4
Re: WA 3
Послано Mescheryakov_Kirill 26 мар 2014 15:54
And that the last line is not so? Like everything correctly.
Re: WA 3
Послано BillSu 28 апр 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
Послано velenhaupt 6 фев 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
Послано Grandmaster 29 мар 2015 15:21
2
register x y
register x y


Out
success: new user added
fail: user already exists
Re: WA 3
Послано SLHUNG 14 апр 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
Послано Sanatbek_Matlatipov 1 сен 2015 11:56
Great. I didn't notice that.
Re: WA 3
Послано Adkham_Acm 15 окт 2018 20:12
Thanks! accepted
Re: WA 3
Послано wnik 26 ноя 2020 15:42
thx it is wery help full