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

Обсуждение задачи 1409. Два бандита

What's the meaning of this problem?
Послано RoBa @ TJU 5 сен 2006 15:20
Seems an easy problem, but I can't understand it...
Re: What's the meaning of this problem?
Послано Kaliningrad SU -J_A_MES-HeadLiner 5 сен 2006 19:31
4 7 - input data
 1  - common can
(4+7)-1=10 - amount of cans
Re: What's the meaning of this problem?
Послано RoBa @ TJU 5 сен 2006 20:01
How can you get "1-common can"?

Or the problem says there must be one common can?
Re: What's the meaning of this problem?
Послано Kaliningrad SU -J_A_MES-HeadLiner 5 сен 2006 20:20
At some moment it happened so that they shot the same can - last can
Re: What's the meaning of this problem?
Послано RoBa @ TJU 6 сен 2006 18:30
Still a little puzzled... Anyway I have got AC, thx for your help :)
Re: What's the meaning of this problem?
Послано yishanerguo 25 сен 2006 10:55
why I am wrong on test2,it seems very easy
Re: What's the meaning of this problem?
Послано Black^n^White 5 окт 2006 23:44
"The 12th High School Pupils Collegiate Programming Contest of the Sverdlovsk Region (October 15, 2005)"

What a mockery  ?!?!

cin >> h >> l;
cout << l-1 << " " << h-1;

And that's all ... (0.001 sec and 220Kb memory used :) )

P.S. 137Kb if it's transformed for C

Edited by author 06.10.2006 00:10
Re: What's the meaning of this problem?
Послано PPaavveell 30 апр 2007 17:53
readln(n,m);
writeln(m-1,' ',n-1);
Re: What's the meaning of this problem?
Послано raksha 15 янв 2008 18:50
if
2 3 - imput data
1 common can
(2+3)-1=4 - amount of cans
Re: What's the meaning of this problem?
Послано dolz 22 авг 2011 03:39
I can explain it easily.

1 1 1 1 "1" 1 1 1 1 1 1 1

the quoted 1 is the can which they will shot it at the same time.

hope i helped after 4 years :D
Re: What's the meaning of this problem?
Послано Mirzobek 18 окт 2011 11:24
sdsdksk skdk skdkfore
Re: What's the meaning of this problem?
Послано xueda120 20 май 2013 12:02
haha thanks
Re: What's the meaning of this problem?
Послано Abdullah Al Ryan 3 июл 2020 00:57
Yes it has helped me after 9 more year

Edited by author 03.07.2020 00:58