Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 1 #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

2 1 #2

wants to merge 6 commits into from

Conversation

MartyanovVV
Copy link
Owner

No description provided.

@MartyanovVV MartyanovVV requested a review from smatskevich March 19, 2022 14:53
Copy link
Collaborator

@smatskevich smatskevich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Принято.

У такого человека оптимального решения меньше сила чем в жадном,тогда заметим,
что по построению жадного решения человек должен быть с меньшей силой, тогда
это противоречит построению дажного решению=> неверное=> жадное является
оптимаьным решением.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

std::vector<Atletics> v;
while (std::cin >> weight >> strenght) {
v.push_back(Atletics(weight, strenght));
if (!std::cin) break;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это должно быть лишним

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants