Editorial for Bellotas


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.

Author: Alain_David

Editorial, crédito a AtCoder


Comments


  • -4
    Anthony08  commented on Dec. 8, 2023, 6:38 p.m.

    Dado un numero N que representa la cantidad de arboles, iteras desde 1 hasta N (desde el primer arbol hasta el ultimo) y al pedir la cantidad de bellotas de cada arbol si es mayor que 10, acumulas en un sumador las bellotas del arbol - 10;