Editorial for A[0], A[2], A[4], ...
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Hint 1.
Бұл есепте элементтің мәніне емес, оның массивтегі орнына назар аудару керек.
Hint 2.
Нөмірлеу \(0\)-ден басталады, сондықтан керек элементтер \(0, 2, 4, ...\) орындарында орналасады.
Hint 3.
Массивті индекстері бойынша қарап шығып, индексі жұп болатын элементтерді шығарыңыз. Индексті \(2\)-ге бөлгендегі қалдық туралы ойланыңыз.