Here are those numbers, 7 7 9 5 7
Imagine you are a robot. What you can do is just a simple calculation at most 7 times. In each calculation, you will target one specific number among 7 7 9 5 7.
Each time, 1 will be added to your targeted number, and 1 will be subtracted from other numbers.

For example, if you target 5 in your 1st attempt then, 5 will be 6, and 1 will be subtracted from others. So, it will be, 6 6 8 6 6
You just have 6 attempts left, to make it 4 zeros and 1 one.(It can be, 0 0 1 0 0).

So, according to rules, Is that possible to make those numbers(7 7 9 5 7) to 4 zeros and 1 one phase inside 7 attempts?
Hope it helps

And about the algorithm, is that possible? Because those numbers (7 7 9 5 7) and the number of calculation-time(7) are constant.

I’m sorry, I’m the real fool
I tried to pre-register there. It asked me 8 questions within 30 minutes and it was one of them. Maybe it was April fool
Here is my result,