need help for this sept,18 cook-off problem Dot It

Ho to solve the problem DOTIT in September 2018 COOK-OFF?

A : [1 , 0 , 1]

answer : 2 (you can inc a[1] and a[3])

<dc:creator xmlns:dc=“http://purl.org/dc/elements/1.1/”>caobao_</dc:creator>Fri, 21 Sep 2018 19:01:22 +0530https://discuss.codechef.com/questions/135754/unsolved-a-hard-problemproblemhardSnackdown teammatehttps://discuss.codechef.com/questions/135969/snackdown-teammate

Looking for someone who would participate along with me in snackdown 2019.

<dc:creator xmlns:dc=“http://purl.org/dc/elements/1.1/”>yaminote</dc:creator>Mon, 24 Sep 2018 21:01:05 +0530https://discuss.codechef.com/questions/135969/snackdown-teammatesnackdownneed help for this sept,18 cook-off problem Dot Ithttps://discuss.codechef.com/questions/136128/need-help-for-this-sept18-cook-off-problem-dot-it

Ho to solve the problem DOTIT in September 2018 COOK-OFF?

<dc:creator xmlns:dc=“http://purl.org/dc/elements/1.1/”>titin_</dc:creator>Thu, 27 Sep 2018 04:50:41 +0530https://discuss.codechef.com/questions/136128/need-help-for-this-sept18-cook-off-problem-dot-iteditorialABCSTR - Editorialhttps://discuss.codechef.com/questions/40359/abcstr-editorial## PROBLEM LINK:

Practice

Contest

Author: Konstantin Sokol

Tester: Gerald Agapov

Editorialist: Tasnim Imran Sunny

DIFFICULTY:

Simple

PREREQUISITES: