In the first example, satisfies the condition, since after adding the corresponding values, the arrays , , , , are formed.
In the second example, satisfies the condition, since after adding the corresponding values, the arrays , , , are formed.
In the third example, satisfies the condition, since after adding the corresponding values, the arrays and are formed.
Scoring
- ( points): ;
- ( points): for , ;
- ( points): ;
- ( points): ;
- ( points): for , ;
- ( points): for ;
- ( points): ;
- ( points): without additional constraints.