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

whats wrong with 10-b and 10-a
Posted by md adullah al mamun udoy 27 Sep 2022 14:02
whats wrong with this logic?
cout<<10-a<<" "<<10-b<<endl;
Re: The right logic is...
Posted by Nuruddin 5 Jan 2023 23:38
All cans = Harry shot + Larry shot - 1;
Not shot by Harry = All cans - Harry shot;
Not shot by Larry = All cans - Larry shot;

Edited by author 05.01.2023 23:48