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 1409. Two Gangsters

What's the meaning of this problem?
Posted by RoBa @ TJU 5 Sep 2006 15:20
Seems an easy problem, but I can't understand it...
Re: What's the meaning of this problem?
Posted by Kaliningrad SU -J_A_MES-HeadLiner 5 Sep 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?
Posted by RoBa @ TJU 5 Sep 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?
Posted by Kaliningrad SU -J_A_MES-HeadLiner 5 Sep 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?
Posted by RoBa @ TJU 6 Sep 2006 18:30
Still a little puzzled... Anyway I have got AC, thx for your help :)
Re: What's the meaning of this problem?
Posted by yishanerguo 25 Sep 2006 10:55
why I am wrong on test2,it seems very easy
Re: What's the meaning of this problem?
Posted by Black^n^White 5 Oct 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?
Posted by PPaavveell 30 Apr 2007 17:53
readln(n,m);
writeln(m-1,' ',n-1);
Re: What's the meaning of this problem?
Posted by raksha 15 Jan 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?
Posted by dolz 22 Aug 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?
Posted by Mirzobek 18 Oct 2011 11:24
sdsdksk skdk skdkfore
Re: What's the meaning of this problem?
Posted by xueda120 20 May 2013 12:02
haha thanks
Re: What's the meaning of this problem?
Posted by Abdullah Al Ryan 3 Jul 2020 00:57
Yes it has helped me after 9 more year

Edited by author 03.07.2020 00:58